summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qcosmeticstroker.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update year in Nokia copyright messages.Jason McDonald2012-01-111-1/+1
| | | | | | | | | Simple search and replace. This commit doesn't touch 3rd-party files, nor translations (where the change is not so simple and will be handled in a separate commit). Change-Id: I4e48513b8078a44a8cd272326685b25338890148 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Correctly position aliased lines with flat capsLars Knoll2011-08-191-24/+26
| | | | | | | | | | | | | The code was mispositioning lines by half a pixel, as it added half a pixel offset and then rounded in addition. This submit fixes this and also removes certain artifacts when drawing rects at .5 pixel positions. Lance now doesn't show any significant differences to the 4.7 rendering anymore. Task-number: QTBUG-20199 Reviewed-by: Aavit
* Re-apply licenseheader text in source files for qt4.8Jyri Tahtela2011-06-271-17/+17
| | | | | | New files after previous license change round. Reviewed-by: Trust Me
* Fix problem with cosmetic stroking of cubic beziersaavit2011-06-021-2/+2
| | | | The new algorithm would fail if the start and end point were identical.
* Fix smaller bugs in the strokerLars Knoll2011-05-201-7/+14
| | | | | | Calculating the continuation point for closed contours was not taking transformations and the half pixel offset into account.
* fix autotest regressions introduced by 37c329a3Lars Knoll2011-05-161-0/+45
| | | | | Add proper license headers and properly clip pixel drawing to the devices bounding rect.
* fix compilation with namespacesLars Knoll2011-05-121-8/+8
|
* Fix compilation with namespaces enabledLars Knoll2011-05-121-0/+4
| | | | Reviewed-by: Samuel Rødal
* New algorithm for drawing thin linesLars Knoll2011-05-121-0/+954
Added a new QCosmeticStroker class for drawing thin lines. The class can handle both aliased and antialiased lines. The code replaces all the midpoint line drawing algorithms in the raster paintengine and gives correct subpixel positioning for lines. It gives around 30% to 50% speedup against the midpoint algorithm. If we missed that fast path, the speedup is around between a factor of 6 to 8 for lines and aliased paths and 100 and 400 for antialiased paths. Reviewed-by: Kim