diff options
author | Janne Anttila <janne.anttila@digia.com> | 2012-06-19 09:54:28 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-19 09:14:31 +0200 |
commit | a0cf2119a74b7f17d3c417bd7364376dd1e0652d (patch) | |
tree | 50b2d5735e48ccdbf199f30b3864373710e409d1 /src/plugins | |
parent | 28f193ab5368bf647d7169abefd2d34af537e18d (diff) |
Disable TranslucentBackground for WinCE to fix Windows QPA plugin build.
WinCE and WEC7 does not support layered Windows APIs:
http://msdn.microsoft.com/en-us/library/hh300132.aspx
For now - fallback to default window BitBlt always in WinCE.
Change-Id: I6f99d198dec9e90fb4a968882271b466638009d6
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/platforms/windows/qwindowsbackingstore.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowsbackingstore.cpp b/src/plugins/platforms/windows/qwindowsbackingstore.cpp index a81386d752..c30d566e2b 100644 --- a/src/plugins/platforms/windows/qwindowsbackingstore.cpp +++ b/src/plugins/platforms/windows/qwindowsbackingstore.cpp @@ -86,6 +86,7 @@ void QWindowsBackingStore::flush(QWindow *window, const QRegion ®ion, qDebug() << __FUNCTION__ << window << offset << br; QWindowsWindow *rw = QWindowsWindow::baseWindowOf(window); +#ifndef Q_OS_WINCE if (rw->format().hasAlpha() && (window->windowFlags() & Qt::FramelessWindowHint)) { const long wl = GetWindowLong(rw->handle(), GWL_EXSTYLE); if ((wl & WS_EX_LAYERED) == 0) @@ -104,6 +105,7 @@ void QWindowsBackingStore::flush(QWindow *window, const QRegion ®ion, UPDATELAYEREDWINDOWINFO info = {sizeof(info), NULL, &ptDst, &size, m_image->hdc(), &ptSrc, 0, &blend, ULW_ALPHA, &dirty}; QWindowsContext::user32dll.updateLayeredWindowIndirect(rw->handle(), &info); } else { +#endif const HDC dc = rw->getDC(); if (!dc) { qErrnoWarning("%s: GetDC failed", __FUNCTION__); @@ -114,7 +116,9 @@ void QWindowsBackingStore::flush(QWindow *window, const QRegion ®ion, m_image->hdc(), br.x() + offset.x(), br.y() + offset.y(), SRCCOPY)) qErrnoWarning("%s: BitBlt failed", __FUNCTION__); rw->releaseDC(); +#ifndef Q_OS_WINCE } +#endif // Write image for debug purposes. if (QWindowsContext::verboseBackingStore > 2) { |