diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2010-09-16 10:45:26 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2010-09-16 10:45:26 (GMT) |
commit | e28b1810ba5979dcf2146f9389007b4cfd67a31c (patch) | |
tree | ab591c1b0375cf305945b29c2b7cd61e1ac32152 /src | |
parent | 18e35b4764766ef8171ec30b00d0d6bc19edb0ce (diff) | |
download | Qt-e28b1810ba5979dcf2146f9389007b4cfd67a31c.zip Qt-e28b1810ba5979dcf2146f9389007b4cfd67a31c.tar.gz Qt-e28b1810ba5979dcf2146f9389007b4cfd67a31c.tar.bz2 |
Lighthouse: fix QDirectFbScreen::depth to not be fixed to 32
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/platforms/directfb/qdirectfbintegration.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/directfb/qdirectfbintegration.cpp b/src/plugins/platforms/directfb/qdirectfbintegration.cpp index 64b98db..1b3e035 100644 --- a/src/plugins/platforms/directfb/qdirectfbintegration.cpp +++ b/src/plugins/platforms/directfb/qdirectfbintegration.cpp @@ -71,7 +71,7 @@ QDirectFbScreen::QDirectFbScreen(int display) m_geometry = QRect(0,0,config.width,config.height); const int dpi = 72; const qreal inch = 25.4; - m_depth = 32; + m_depth = QDirectFbConvenience::colorDepthForSurface(config.pixelformat); m_physicalSize = QSize(qRound(config.width * inch / dpi), qRound(config.height *inch / dpi)); cursor = new QDirectFBCursor(this); |