diff options
author | Denis Oliver Kropp <dok@directfb.org> | 2011-02-17 14:28:47 (GMT) |
---|---|---|
committer | Marcel Schuette <marcel.schuette@nokia.com> | 2011-02-17 14:28:47 (GMT) |
commit | baed5fdbc1d14e3190b9834f00be9926f9600d62 (patch) | |
tree | e5a74a5d7fbb0e5b7589ae31edc443ce8c69bf8c /src/plugins/gfxdrivers | |
parent | dfde84cccb14b109bebd672108a0ce0d6131361f (diff) | |
download | Qt-baed5fdbc1d14e3190b9834f00be9926f9600d62.zip Qt-baed5fdbc1d14e3190b9834f00be9926f9600d62.tar.gz Qt-baed5fdbc1d14e3190b9834f00be9926f9600d62.tar.bz2 |
fix-layer-getsurface-result-check-for-screen-size-determination
GetSurface() was checked for NOT returning DFB_OK, but it should
Merge-request: 2528
Reviewed-by: Marcel Schuette <marcel.schuette@nokia.com>
Diffstat (limited to 'src/plugins/gfxdrivers')
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp index 09cc465..ff15078 100644 --- a/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp +++ b/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp @@ -1285,7 +1285,7 @@ bool QDirectFBScreen::connect(const QString &displaySpec) result = d_ptr->primarySurface->GetSize(d_ptr->primarySurface, &w, &h); #elif (Q_DIRECTFB_VERSION >= 0x010000) IDirectFBSurface *layerSurface; - if (d_ptr->dfbLayer->GetSurface(d_ptr->dfbLayer, &layerSurface) != DFB_OK) { + if (d_ptr->dfbLayer->GetSurface(d_ptr->dfbLayer, &layerSurface) == DFB_OK) { result = layerSurface->GetSize(layerSurface, &w, &h); layerSurface->Release(layerSurface); } |