summaryrefslogtreecommitdiffstats
path: root/mazescene.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2008-11-27 19:02:36 +0100
committerSamuel Rødal <sroedal@trolltech.com>2008-11-27 19:02:36 +0100
commit2ec40e64cf4d870c1f86640570b06bb498abcc2f (patch)
tree647ba63640eb4273136e38e2251fdefa88070cda /mazescene.cpp
parentf89db0f341bf7d76e3ff7748d68fd72eb3685796 (diff)
Convert images to png.
Diffstat (limited to 'mazescene.cpp')
-rw-r--r--mazescene.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/mazescene.cpp b/mazescene.cpp
index 87819bd..08a0676 100644
--- a/mazescene.cpp
+++ b/mazescene.cpp
@@ -124,10 +124,10 @@ void MazeScene::drawBackground(QPainter *painter, const QRectF &rect)
QTransform rotation = rotatingTransform(m_cameraAngle);
rotation.translate(-m_cameraPos.x(), -m_cameraPos.y());
- static QImage floor = QImage("floor.gif").convertToFormat(QImage::Format_RGB32);
+ static QImage floor = QImage("floor.png").convertToFormat(QImage::Format_RGB32);
QBrush floorBrush(floor);
- static QImage ceiling = QImage("ceiling.gif").convertToFormat(QImage::Format_RGB32);
+ static QImage ceiling = QImage("ceiling.png").convertToFormat(QImage::Format_RGB32);
QBrush ceilingBrush(ceiling);
QTransform brushScale;
@@ -279,9 +279,9 @@ QRectF WallItem::boundingRect() const
void WallItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *)
{
- static QImage brown = QImage("brown.bmp").convertToFormat(QImage::Format_RGB32);
- static QImage book = QImage("book.gif").convertToFormat(QImage::Format_RGB32);
- static QImage door = QImage("door.bmp").convertToFormat(QImage::Format_RGB32);
+ static QImage brown = QImage("brown.png").convertToFormat(QImage::Format_RGB32);
+ static QImage book = QImage("book.png").convertToFormat(QImage::Format_RGB32);
+ static QImage door = QImage("door.png").convertToFormat(QImage::Format_RGB32);
if (m_type != 2) {
if (m_type == 1) {