summaryrefslogtreecommitdiffstats
path: root/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-07-17 10:09:10 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-07-17 10:19:42 (GMT)
commitbb5692384aef0b87362966609b8fd58c0974e4b5 (patch)
tree5427c615af08cc9455193fce5b0cd72e83ab20d5 /src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
parent4652f0e0a03083b5baa1488237084333b134c516 (diff)
downloadQt-bb5692384aef0b87362966609b8fd58c0974e4b5.zip
Qt-bb5692384aef0b87362966609b8fd58c0974e4b5.tar.gz
Qt-bb5692384aef0b87362966609b8fd58c0974e4b5.tar.bz2
Clean up directfb bit flipping
DirectFB declares variables that are bit fields as enums. E.g. DFBSurfaceCapabilities caps; caps |= DSCAPS_LOCK; // doesn't compile in C++ Work around this problem by declaring operators for these operations. This greatly improves the readability of the code. Reviewed-by: TrustMe
Diffstat (limited to 'src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
index c75cba6..dd7faf3 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
@@ -374,7 +374,7 @@ QImage *QDirectFBPixmapData::buffer()
return lockedImage;
}
-QImage * QDirectFBPixmapData::buffer(uint lockFlags)
+QImage * QDirectFBPixmapData::buffer(DFBSurfaceLockFlags lockFlags)
{
lockDirectFB(lockFlags);
return lockedImage;