summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qcosmeticstroker_p.h
Commit message (Collapse)AuthorAgeFilesLines
* Correctly position aliased lines with flat capsLars Knoll2011-08-191-4/+6
| | | | | | | | | | | | | 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 autotest regressions introduced by 37c329a3Lars Knoll2011-05-161-0/+41
| | | | | Add proper license headers and properly clip pixel drawing to the devices bounding rect.
* Fix compilation with namespaces enabledLars Knoll2011-05-121-0/+10
| | | | Reviewed-by: Samuel Rødal
* New algorithm for drawing thin linesLars Knoll2011-05-121-0/+101
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