summaryrefslogtreecommitdiffstats
path: root/tests/auto/mediaobject/dummy
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-02-01 15:10:58 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-02-01 15:10:58 (GMT)
commitf3cf5dd98e321980984288a1768f3375a8349800 (patch)
treeae845bbe0f29d74367329a9dba5805140a461cdf /tests/auto/mediaobject/dummy
parentd60916a4a9281ed1ce2fa5f360d512094b2548a6 (diff)
downloadQt-f3cf5dd98e321980984288a1768f3375a8349800.zip
Qt-f3cf5dd98e321980984288a1768f3375a8349800.tar.gz
Qt-f3cf5dd98e321980984288a1768f3375a8349800.tar.bz2
Fix transformed painting of QStaticText in GL2 paint engine
The GL2 paint engine was rewritten to use GL to transform glyphs when copying them from the glyph cache instead of keeping a separate cache for different transformations. Since the glyph positions in QStaticText already include the transformation, we need to run the gl calls with an identity matrix, otherwise the position of the glyphs will be transformed twice. The output from drawText() and drawStaticText() will for the same reason look different for the two different engines. The option here is to detect the problem when drawing to the opengl2 engine, and then recalculating the glyph positions for the QStaticText. This will of course create a big overhead when regularly switching between different paint devices, but it might make sense to optimize for one QStaticText per paint device. For the time being I haven't done that, though, since that change would require a bigger hack, so it warrants deeper consideration.
Diffstat (limited to 'tests/auto/mediaobject/dummy')
0 files changed, 0 insertions, 0 deletions