diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2010-12-08 11:28:34 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2010-12-08 11:32:03 (GMT) |
commit | 07b3a1c3d38d5870009e76de6315a9025e8f7915 (patch) | |
tree | 61a2c8bf1dc8b060465dead7e9b6f981659fdb07 /src/gui/painting | |
parent | eb2bd43078c1bb43481aab795f92e105fa130860 (diff) | |
download | Qt-07b3a1c3d38d5870009e76de6315a9025e8f7915.zip Qt-07b3a1c3d38d5870009e76de6315a9025e8f7915.tar.gz Qt-07b3a1c3d38d5870009e76de6315a9025e8f7915.tar.bz2 |
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/gui/painting')
-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 5d665cd..001345f 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 ) |