summaryrefslogtreecommitdiffstats
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
parentf89db0f341bf7d76e3ff7748d68fd72eb3685796 (diff)
Convert images to png.
-rw-r--r--book.gifbin2490 -> 0 bytes
-rw-r--r--book.pngbin0 -> 2096 bytes
-rw-r--r--brown.bmpbin5174 -> 0 bytes
-rw-r--r--brown.pngbin0 -> 1963 bytes
-rw-r--r--ceiling.gifbin2362 -> 0 bytes
-rw-r--r--ceiling.pngbin0 -> 3721 bytes
-rw-r--r--door.bmpbin5174 -> 0 bytes
-rw-r--r--door.pngbin0 -> 2308 bytes
-rw-r--r--floor.gifbin2731 -> 0 bytes
-rw-r--r--floor.pngbin0 -> 5791 bytes
-rw-r--r--mazescene.cpp10
11 files changed, 5 insertions, 5 deletions
diff --git a/book.gif b/book.gif
deleted file mode 100644
index aa82af9..0000000
--- a/book.gif
+++ /dev/null
Binary files differ
diff --git a/book.png b/book.png
new file mode 100644
index 0000000..bcc871a
--- /dev/null
+++ b/book.png
Binary files differ
diff --git a/brown.bmp b/brown.bmp
deleted file mode 100644
index e5e94a1..0000000
--- a/brown.bmp
+++ /dev/null
Binary files differ
diff --git a/brown.png b/brown.png
new file mode 100644
index 0000000..5b9b84e
--- /dev/null
+++ b/brown.png
Binary files differ
diff --git a/ceiling.gif b/ceiling.gif
deleted file mode 100644
index 789d167..0000000
--- a/ceiling.gif
+++ /dev/null
Binary files differ
diff --git a/ceiling.png b/ceiling.png
new file mode 100644
index 0000000..6701c2c
--- /dev/null
+++ b/ceiling.png
Binary files differ
diff --git a/door.bmp b/door.bmp
deleted file mode 100644
index cd3ad3b..0000000
--- a/door.bmp
+++ /dev/null
Binary files differ
diff --git a/door.png b/door.png
new file mode 100644
index 0000000..d01f83b
--- /dev/null
+++ b/door.png
Binary files differ
diff --git a/floor.gif b/floor.gif
deleted file mode 100644
index 72ed2db..0000000
--- a/floor.gif
+++ /dev/null
Binary files differ
diff --git a/floor.png b/floor.png
new file mode 100644
index 0000000..ceb8a31
--- /dev/null
+++ b/floor.png
Binary files differ
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) {