summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qpixmap_blitter.cpp
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-01-11 15:14:33 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2010-01-11 15:14:33 (GMT)
commit721653914597ccdec7bbf94b58e6b6879dd53755 (patch)
treecfaceca17f82b85bf021b6eaeec04183fbb4d34f /src/gui/image/qpixmap_blitter.cpp
parent5dfcb52fb853ae7f28acc83e2be99f999e1bf31e (diff)
downloadQt-721653914597ccdec7bbf94b58e6b6879dd53755.zip
Qt-721653914597ccdec7bbf94b58e6b6879dd53755.tar.gz
Qt-721653914597ccdec7bbf94b58e6b6879dd53755.tar.bz2
Added colordepth convenience function in minimaldfb
and added pixelformat for default dfbblitters
Diffstat (limited to 'src/gui/image/qpixmap_blitter.cpp')
-rw-r--r--src/gui/image/qpixmap_blitter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/image/qpixmap_blitter.cpp b/src/gui/image/qpixmap_blitter.cpp
index 6ab97c1..b2bb674 100644
--- a/src/gui/image/qpixmap_blitter.cpp
+++ b/src/gui/image/qpixmap_blitter.cpp
@@ -29,13 +29,15 @@ QBlittable *QBlittablePixmapData::blittable() const
void QBlittablePixmapData::setBlittable(QBlittable *blittable)
{
- delete m_blittable;
resize(blittable->rect().width(),blittable->rect().height());
m_blittable = blittable;
}
void QBlittablePixmapData::resize(int width, int height)
{
+
+ delete m_blittable;
+ m_blittable = 0;
delete m_engine;
m_engine = 0;
d = QApplicationPrivate::graphicsSystem()->screens().at(0)->depth();