diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2009-06-08 17:01:26 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2009-06-08 17:01:26 (GMT) |
commit | 79e2bc2bce3e5faa05872f662ab231c8b42d2612 (patch) | |
tree | f565f4a2e05ea9fd7b110a8c800369b72e65ec49 /src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp | |
parent | b9c4f8fec2a009003029dd95b20d0342271c0473 (diff) | |
download | Qt-79e2bc2bce3e5faa05872f662ab231c8b42d2612.zip Qt-79e2bc2bce3e5faa05872f662ab231c8b42d2612.tar.gz Qt-79e2bc2bce3e5faa05872f662ab231c8b42d2612.tar.bz2 |
Make the directfb plugin compile against 0.9
Not sure to what extent it actually works but atleast it compiles now.
- A couple of image formats doesn't exist in 0.9
- IDirectFBSurface::ReleaseSource doesn't exist in 0.9
- IDirectFBWindow::SetBounds doesn't exist in 0.9
Reviewed-by: Donald <qt-info@nokia.com>
Diffstat (limited to 'src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp')
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp index 330eb88..442f8dd 100644 --- a/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp +++ b/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp @@ -188,14 +188,25 @@ void QDirectFBWindowSurface::setGeometry(const QRect &rect, const QRegion &mask) if (!dfbWindow) createWindow(); - if (isResize && isMove) +#if (Q_DIRECTFB_VERSION >= 0x010000) + if (isResize && isMove) { result = dfbWindow->SetBounds(dfbWindow, rect.x(), rect.y(), rect.width(), rect.height()); - else if (isResize) + } else if (isResize) { result = dfbWindow->Resize(dfbWindow, rect.width(), rect.height()); - else if (isMove) + } else if (isMove) { result = dfbWindow->MoveTo(dfbWindow, rect.x(), rect.y()); + } +#else + if (isResize) { + result = dfbWindow->Resize(dfbWindow, + rect.width(), rect.height()); + } + if (isMove) { + result = dfbWindow->MoveTo(dfbWindow, rect.x(), rect.y()); + } +#endif #endif } |