diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2009-12-09 10:02:15 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2009-12-09 10:02:15 (GMT) |
commit | 932346c345d7759b0e9280434a0371c8e9d67b7e (patch) | |
tree | 3a0b919370254946ade494a681d3ec1178362202 /src/gui/image/qpixmap_blitter.cpp | |
parent | d8d65804ed67ff58fe8679d3a1831c9dfad3624a (diff) | |
download | Qt-932346c345d7759b0e9280434a0371c8e9d67b7e.zip Qt-932346c345d7759b0e9280434a0371c8e9d67b7e.tar.gz Qt-932346c345d7759b0e9280434a0371c8e9d67b7e.tar.bz2 |
Quick fix for bitmap type
Diffstat (limited to 'src/gui/image/qpixmap_blitter.cpp')
-rw-r--r-- | src/gui/image/qpixmap_blitter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/image/qpixmap_blitter.cpp b/src/gui/image/qpixmap_blitter.cpp index 35d6ddb..08b0c3c 100644 --- a/src/gui/image/qpixmap_blitter.cpp +++ b/src/gui/image/qpixmap_blitter.cpp @@ -103,8 +103,7 @@ void QBlittablePixmapData::fromImage(const QImage &image, resize(image.width(),image.height()); QImage *thisImg = blittable()->lock(); QPainter p(thisImg); - p.drawImage(0,0,image,flags); - + p.drawImage(blittable()->rect(),image,image.rect()); } QPaintEngine *QBlittablePixmapData::paintEngine() const |