Deactivate right padding.

master
Fabien Freling 2014-08-06 23:01:50 +02:00
parent b015d91331
commit f2234dea1f
1 changed files with 2 additions and 2 deletions

View File

@ -559,7 +559,7 @@ Image* rotate(Image const& src, double angle)
int const left_padding = padding_table[y];
int const left_border = 0;
int const right_padding = 0;
int const right_border = padding_table[height - 1 - y];
int const right_border = 0;
int const core_pixels = width - left_padding - left_border - right_border - right_padding;
// Left padding
@ -585,7 +585,7 @@ Image* rotate(Image const& src, double angle)
if (src_rotated_point.x < 0 || src_rotated_point.y < 0
|| src_rotated_point.x >= src_qwidth || src_rotated_point.y >= src_qheight)
{
LOG << "Out-of-bounds point!" << endl;
// LOG << "Out-of-bounds point!" << endl;
// cout << " x: " << x << endl;
// cout << " src_rotated_point: " << src_rotated_point << endl;
// cout << " qdx: " << qdx << endl;