summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2010-01-03 14:35:53 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2010-01-07 15:07:28 (GMT)
commit4c188f40d8101fe8aaa63ab49b93394d9005db93 (patch)
tree061f1b18f1d834ad21fafebdafe2acda7167c38b /doc/src/snippets/code
parentba0a8a491d6fbedb7ab7d7c4fd41e9eed1ac8670 (diff)
downloadQt-4c188f40d8101fe8aaa63ab49b93394d9005db93.zip
Qt-4c188f40d8101fe8aaa63ab49b93394d9005db93.tar.gz
Qt-4c188f40d8101fe8aaa63ab49b93394d9005db93.tar.bz2
Introduce new "snapToPixelGrid" flag to GL2 engine for drawText
When we're rendering text, the glyphs need to be aligned to the pixel grid otherwise we get strange artifacts. Normally text is drawn at integer coordinates, however it is still possible to have a transform which translates by a non-integer offset. This patch adds a flag to the engine which can be used to snap any translate to the pixel grid. Task-number: QTBUG-7094 Reviewed-By: Kim (cherry picked from commit 1e7922262c29ba29a70226cf8894645f46df3ca2)
Diffstat (limited to 'doc/src/snippets/code')
0 files changed, 0 insertions, 0 deletions