diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2009-08-28 03:23:26 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2009-08-28 03:23:59 (GMT) |
commit | 2537855167535afa317664828ca47d9a25fe127b (patch) | |
tree | 57e5bfdf154a0adb8e0fdbf26124e2ad6b6d5e50 /src/plugins/gfxdrivers | |
parent | 008d0c69c16b80af6c8c59b8c3a9b6de0238f6d4 (diff) | |
download | Qt-2537855167535afa317664828ca47d9a25fe127b.zip Qt-2537855167535afa317664828ca47d9a25fe127b.tar.gz Qt-2537855167535afa317664828ca47d9a25fe127b.tar.bz2 |
Make lockSurface take a real enum
Reviewed-by: TrustMe
Diffstat (limited to 'src/plugins/gfxdrivers')
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp | 4 | ||||
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbscreen.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp index 1bf74d4..1063d52 100644 --- a/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp +++ b/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp @@ -1509,10 +1509,10 @@ bool QDirectFBScreen::initSurfaceDescriptionPixelFormat(DFBSurfaceDescription *d return true; } -uchar *QDirectFBScreen::lockSurface(IDirectFBSurface *surface, uint flags, int *bpl) +uchar *QDirectFBScreen::lockSurface(IDirectFBSurface *surface, DFBSurfaceLockFlags flags, int *bpl) { void *mem; - const DFBResult result = surface->Lock(surface, static_cast<DFBSurfaceLockFlags>(flags), static_cast<void**>(&mem), bpl); + const DFBResult result = surface->Lock(surface, flags, static_cast<void**>(&mem), bpl); if (result != DFB_OK) { DirectFBError("QDirectFBScreen::lockSurface()", result); } diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbscreen.h b/src/plugins/gfxdrivers/directfb/qdirectfbscreen.h index 8af4e0f..4b6c01f 100644 --- a/src/plugins/gfxdrivers/directfb/qdirectfbscreen.h +++ b/src/plugins/gfxdrivers/directfb/qdirectfbscreen.h @@ -210,7 +210,7 @@ public: const QImage &image); #endif - static uchar *lockSurface(IDirectFBSurface *surface, uint flags, int *bpl = 0); + static uchar *lockSurface(IDirectFBSurface *surface, DFBSurfaceLockFlags flags, int *bpl = 0); #if defined QT_DIRECTFB_IMAGEPROVIDER && defined QT_DIRECTFB_IMAGEPROVIDER_KEEPALIVE void setDirectFBImageProvider(IDirectFBImageProvider *provider); #endif |