From a0cf2119a74b7f17d3c417bd7364376dd1e0652d Mon Sep 17 00:00:00 2001 From: Janne Anttila Date: Tue, 19 Jun 2012 09:54:28 +0300 Subject: 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 --- src/plugins/platforms/windows/qwindowsbackingstore.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- cgit v1.2.3