summaryrefslogtreecommitdiffstats
path: root/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-08-28 03:23:26 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-08-28 03:23:59 (GMT)
commit2537855167535afa317664828ca47d9a25fe127b (patch)
tree57e5bfdf154a0adb8e0fdbf26124e2ad6b6d5e50 /src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp
parent008d0c69c16b80af6c8c59b8c3a9b6de0238f6d4 (diff)
downloadQt-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/directfb/qdirectfbscreen.cpp')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp4
1 files changed, 2 insertions, 2 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);
}