diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2010-12-08 12:28:34 +0100 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2010-12-08 12:32:03 +0100 |
commit | 07b3a1c3d38d5870009e76de6315a9025e8f7915 (patch) | |
tree | 61a2c8bf1dc8b060465dead7e9b6f981659fdb07 /src | |
parent | eb2bd43078c1bb43481aab795f92e105fa130860 (diff) | |
download | qt4-tools-07b3a1c3d38d5870009e76de6315a9025e8f7915.tar.gz |
Fixed cubic bezier rendering bug in qgrayraster.
Use the y coordinates to compute the y delta... This could cause
too fine (or too coarse) subdivision of cubic bezier curves, so
potentially both performance problems and visual artifacts.
Task-number: QTBUG-15660
Reviewed-by: Andreas Kling
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/painting/qgrayraster.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qgrayraster.c b/src/gui/painting/qgrayraster.c index 5d665cdbac..001345fe6a 100644 --- a/src/gui/painting/qgrayraster.c +++ b/src/gui/painting/qgrayraster.c @@ -982,7 +982,7 @@ dx = DOWNSCALE( ras.x ) + to->x - 3 * ( control1->x + control2->x ); if ( dx < 0 ) dx = -dx; - dy = DOWNSCALE( ras.y ) + to->y - 3 * ( control1->x + control2->y ); + dy = DOWNSCALE( ras.y ) + to->y - 3 * ( control1->y + control2->y ); if ( dy < 0 ) dy = -dy; if ( dx < dy ) |