qt6-bb10/tests/auto/gui/painting
Eirik Aavitsland d5c6335ff3 Fix rasterization errors in aliased cosmetic drawPolyLine
If a cosmetic polyline contained a 1-pixel segment, the next segment
would be drawn with wrong starting point.

The original fix for QTBUG-26156 had some unwanted side effects
(QTBUG-31579 and now QTBUG-42398). It tried to skip start-point update
if stroke() did not actually draw anything (because the segment was
too small). However, to determine that, it tested for a change in
lastPixel. But that was not failsafe; in some cases (1-pixel segment),
lastPixel could be unchanged even though the segment had been
drawn. With this change, we instead test directly whether stroke()
skipped the segment or not.

Task-number: QTBUG-42398
Change-Id: Id751db69a18cd1af4f45070db9d5698aa532d22a
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
2015-03-19 09:01:08 +00:00
..
qbrush Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qcolor Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qpagelayout Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qpagesize Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qpaintengine Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qpainter Fix rasterization errors in aliased cosmetic drawPolyLine 2015-03-19 09:01:08 +00:00
qpainterpath Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qpainterpathstroker Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qpathclipper Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qpdfwriter Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qpen Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qpolygon Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qregion Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qtransform Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qwmatrix Update license headers and add new license files 2014-09-24 12:26:19 +02:00
painting.pro QPdfWriter - Use QPageSize and QPageLayout 2014-03-17 13:45:52 +01:00