summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-17 18:43:29 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-17 18:43:29 +0000
commit44a347ccc40bb4a42f03743f5e2401769da41289 (patch)
tree5d84c5e4ca0855af199c3e099c573e3d6037c0ce /src/main.cpp
parent86afed79898af85cdf53060f0062f95cf27113a7 (diff)
downloadmana-44a347ccc40bb4a42f03743f5e2401769da41289.tar.gz
mana-44a347ccc40bb4a42f03743f5e2401769da41289.tar.bz2
mana-44a347ccc40bb4a42f03743f5e2401769da41289.tar.xz
mana-44a347ccc40bb4a42f03743f5e2401769da41289.zip
Converted some images to PNG and put them in new dir structure.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp21
1 files changed, 9 insertions, 12 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 17307209..4d6651b6 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -210,22 +210,19 @@ void init_engine() {
ResourceManager *resman = ResourceManager::getInstance();
- login_wallpaper = resman->getImage("graphic/login.bmp");
- Image *playerImg = resman->getImage("graphic/playerset.bmp");
- Image *hairImg = resman->getImage("graphic/hairset.bmp");
+ login_wallpaper = resman->getImage(
+ "core/graphics/images/login_wallpaper.png");
+ Image *playerImg = resman->getImage(
+ "core/graphics/sprites/player_male_base.png");
+ Image *hairImg = resman->getImage(
+ "core/graphics/sprites/player_male_hair.png");
if (!login_wallpaper) error("Couldn't load login.bmp");
- if (!playerImg) error("Couldn't load playerset.bmp");
+ if (!playerImg) error("Couldn't load playerset.png");
if (!hairImg) error("Couldn't load hairset.bmp");
- // Stretch some bitmaps while they haven't been replaced with higher res
- Image *scaledPlayerImg = playerImg->getScaledInstance(
- playerImg->getWidth() * 2, playerImg->getHeight() * 2);
- Image *scaledHairImg = hairImg->getScaledInstance(
- hairImg->getWidth() * 2, hairImg->getHeight() * 2);
-
- playerset = new Spriteset(scaledPlayerImg, 160, 120);
- hairset = new Spriteset(scaledHairImg, 40, 40);
+ playerset = new Spriteset(playerImg, 160, 120);
+ hairset = new Spriteset(hairImg, 40, 40);
init_gui(graphics);
state = LOGIN;