diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-05-27 07:44:14 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-05-27 09:57:22 (GMT) |
commit | cfdfdf079c4a2095c588dd8af8403c74d2cfa37a (patch) | |
tree | c4297c67413f25bf4e125258467f694e175972d9 /src/opengl/qglscreen_qws.cpp | |
parent | 80bc757b56953065fafeffe6c4b8fb6fbca287ac (diff) | |
download | Qt-cfdfdf079c4a2095c588dd8af8403c74d2cfa37a.zip Qt-cfdfdf079c4a2095c588dd8af8403c74d2cfa37a.tar.gz Qt-cfdfdf079c4a2095c588dd8af8403c74d2cfa37a.tar.bz2 |
Optimized QRasterPixmapData::metric.
Avoid needless DPI calculations when not needed, and simplify the DPI
calculations to the point where most of the operations disappear. Also
avoid calling QImage::metric() so that we don't need to go through two
switch statements and an extra function call just to get the width of a
pixmap.
Reviewed-by: Trond
Diffstat (limited to 'src/opengl/qglscreen_qws.cpp')
0 files changed, 0 insertions, 0 deletions