diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2008-11-27 19:02:36 +0100 |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2008-11-27 19:02:36 +0100 |
commit | 2ec40e64cf4d870c1f86640570b06bb498abcc2f (patch) | |
tree | 647ba63640eb4273136e38e2251fdefa88070cda | |
parent | f89db0f341bf7d76e3ff7748d68fd72eb3685796 (diff) |
Convert images to png.
-rw-r--r-- | book.gif | bin | 2490 -> 0 bytes | |||
-rw-r--r-- | book.png | bin | 0 -> 2096 bytes | |||
-rw-r--r-- | brown.bmp | bin | 5174 -> 0 bytes | |||
-rw-r--r-- | brown.png | bin | 0 -> 1963 bytes | |||
-rw-r--r-- | ceiling.gif | bin | 2362 -> 0 bytes | |||
-rw-r--r-- | ceiling.png | bin | 0 -> 3721 bytes | |||
-rw-r--r-- | door.bmp | bin | 5174 -> 0 bytes | |||
-rw-r--r-- | door.png | bin | 0 -> 2308 bytes | |||
-rw-r--r-- | floor.gif | bin | 2731 -> 0 bytes | |||
-rw-r--r-- | floor.png | bin | 0 -> 5791 bytes | |||
-rw-r--r-- | mazescene.cpp | 10 |
11 files changed, 5 insertions, 5 deletions
diff --git a/book.gif b/book.gif Binary files differdeleted file mode 100644 index aa82af9..0000000 --- a/book.gif +++ /dev/null diff --git a/book.png b/book.png Binary files differnew file mode 100644 index 0000000..bcc871a --- /dev/null +++ b/book.png diff --git a/brown.bmp b/brown.bmp Binary files differdeleted file mode 100644 index e5e94a1..0000000 --- a/brown.bmp +++ /dev/null diff --git a/brown.png b/brown.png Binary files differnew file mode 100644 index 0000000..5b9b84e --- /dev/null +++ b/brown.png diff --git a/ceiling.gif b/ceiling.gif Binary files differdeleted file mode 100644 index 789d167..0000000 --- a/ceiling.gif +++ /dev/null diff --git a/ceiling.png b/ceiling.png Binary files differnew file mode 100644 index 0000000..6701c2c --- /dev/null +++ b/ceiling.png diff --git a/door.bmp b/door.bmp Binary files differdeleted file mode 100644 index cd3ad3b..0000000 --- a/door.bmp +++ /dev/null diff --git a/door.png b/door.png Binary files differnew file mode 100644 index 0000000..d01f83b --- /dev/null +++ b/door.png diff --git a/floor.gif b/floor.gif Binary files differdeleted file mode 100644 index 72ed2db..0000000 --- a/floor.gif +++ /dev/null diff --git a/floor.png b/floor.png Binary files differnew file mode 100644 index 0000000..ceb8a31 --- /dev/null +++ b/floor.png 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) { |