summaryrefslogtreecommitdiff
path: root/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-07-28 14:30:27 -0700
committerAnders Bakken <anders.bakken@nokia.com>2009-07-28 15:00:45 -0700
commit77fc1ccec09e23de6fc6fedd368cef8111745711 (patch)
treecb6a982932a79892b6d0dadb05c2e1dba1854e17 /src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h
parentc0f85469a76a25fff6951b634b67cfbcd0507b93 (diff)
downloadqt4-tools-77fc1ccec09e23de6fc6fedd368cef8111745711.tar.gz
Refactor QDirectFBPaintDevice
Make the engine a member in QDirectFBPaintDevice instead of one in QDirectFBPixmapData and one in QDirectFBWindowSurface. Don't use the default screen for the dfbpaintdevices. Pass one explicitly. Reviewed-by: Noam Rosenthal <noam.rosenthal@nokia.com>
Diffstat (limited to 'src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h b/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h
index 8f3ce41617..55671029d4 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h
@@ -56,7 +56,7 @@ class QDirectFBPaintEngine;
class QDirectFBPixmapData : public QPixmapData, public QDirectFBPaintDevice
{
public:
- QDirectFBPixmapData(PixelType pixelType);
+ QDirectFBPixmapData(QDirectFBScreen *screen, PixelType pixelType);
~QDirectFBPixmapData();
// Re-implemented from QPixmapData:
@@ -78,7 +78,6 @@ public:
static bool hasAlphaChannel(const QImage &img);
private:
void invalidate();
- QDirectFBPaintEngine *engine;
QImage::Format format;
bool alpha;
};