diff options
author | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-04-22 11:58:41 +0200 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-04-22 14:10:49 +0200 |
commit | 7ba85aba8686d83dc8557a9fb6d4504fbbeec349 (patch) | |
tree | 4d1a6ad5a6c5152f82d762248f35e8cb392c9c85 /src/gui/embedded/qscreentransformed_qws.cpp | |
parent | e8468f21d24b85114a8841413f9328a17f7bc54d (diff) | |
download | qt4-tools-7ba85aba8686d83dc8557a9fb6d4504fbbeec349.tar.gz |
Fix Transformed driver on 8-bit displays
Task-number: 250971
Reviewed-by: Tom
Diffstat (limited to 'src/gui/embedded/qscreentransformed_qws.cpp')
-rw-r--r-- | src/gui/embedded/qscreentransformed_qws.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/embedded/qscreentransformed_qws.cpp b/src/gui/embedded/qscreentransformed_qws.cpp index f9887890fd..46ac1d1b1a 100644 --- a/src/gui/embedded/qscreentransformed_qws.cpp +++ b/src/gui/embedded/qscreentransformed_qws.cpp @@ -410,7 +410,9 @@ void QTransformedScreen::blit(const QImage &image, const QPoint &topLeft, #endif #ifdef QT_QWS_DEPTH_8 case 8: - if (image.depth() == 16) + if (image.format() == QImage::Format_RGB444) + SET_BLIT_FUNC(quint8, qrgb444, trans, func); + else if (image.depth() == 16) SET_BLIT_FUNC(quint8, quint16, trans, func); else SET_BLIT_FUNC(quint8, quint32, trans, func); |