Fixed inconsistent rounding of square cap pens.
authorSamuel Rødal <samuel.rodal@digia.com>
Thu, 20 Sep 2012 13:30:24 +0000 (15:30 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 20 Sep 2012 21:08:44 +0000 (23:08 +0200)
commit72aaba336c7afe6d79d59995bfb31a8effca4e9e
treee6f38c0330f1229bec0f4db6e4a612e6d2f8b46d
parent562d6ff90f693e43086b286b6e4b2bf2e581e111
Fixed inconsistent rounding of square cap pens.

A horizontal line should round up at the same time as a vertical line
with square cap, when rendering at subpixel coordinates. Thus, the
special casing in the cosmetic stroker of offsetting by half a pixel
should be for flat caps instead of for square caps.

Task-number: QTBUG-26013
Change-Id: Ic09249337f814c7de95a17976ec9e651561a744b
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/gui/painting/qcosmeticstroker.cpp
tests/auto/gui/painting/qpainter/tst_qpainter.cpp