summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qgrayraster.c
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2010-12-08 11:28:34 (GMT)
committerSamuel Rødal <samuel.rodal@nokia.com>2010-12-08 11:32:03 (GMT)
commit07b3a1c3d38d5870009e76de6315a9025e8f7915 (patch)
tree61a2c8bf1dc8b060465dead7e9b6f981659fdb07 /src/gui/painting/qgrayraster.c
parenteb2bd43078c1bb43481aab795f92e105fa130860 (diff)
downloadQt-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/qgrayraster.c')
-rw-r--r--src/gui/painting/qgrayraster.c2
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 )