summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qcosmeticstroker.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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