summaryrefslogtreecommitdiffstats
path: root/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h
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.h
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.h')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h b/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h
index ad6c38e..8f3ce41 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h
@@ -70,7 +70,7 @@ public:
QImage toImage() const;
QPaintEngine* paintEngine() const;
virtual QImage *buffer();
- QImage *buffer(uint lockFlags);
+ QImage *buffer(DFBSurfaceLockFlags lockFlags);
// Pure virtual in QPixmapData, so re-implement here and delegate to QDirectFBPaintDevice
int metric(QPaintDevice::PaintDeviceMetric m) const {return QDirectFBPaintDevice::metric(m);}