diff options
author | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-04-22 09:58:41 (GMT) |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-04-22 12:10:49 (GMT) |
commit | 7ba85aba8686d83dc8557a9fb6d4504fbbeec349 (patch) | |
tree | 4d1a6ad5a6c5152f82d762248f35e8cb392c9c85 /src/gui/embedded | |
parent | e8468f21d24b85114a8841413f9328a17f7bc54d (diff) | |
download | Qt-7ba85aba8686d83dc8557a9fb6d4504fbbeec349.zip Qt-7ba85aba8686d83dc8557a9fb6d4504fbbeec349.tar.gz Qt-7ba85aba8686d83dc8557a9fb6d4504fbbeec349.tar.bz2 |
Fix Transformed driver on 8-bit displays
Task-number: 250971
Reviewed-by: Tom
Diffstat (limited to 'src/gui/embedded')
-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 f988789..46ac1d1 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); |