summaryrefslogtreecommitdiff
path: root/src/resources/sdlimagehelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-10 00:49:50 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-10 03:07:44 +0300
commit45f076bd429c40d81607f43837f1cc571f3f6be0 (patch)
treed6559bb6fb9e87a4953a342cc4af0db8045ba1f4 /src/resources/sdlimagehelper.cpp
parentf75a1e7af1db4be56430765e19a5aee75284dd3e (diff)
downloadmanaverse-45f076bd429c40d81607f43837f1cc571f3f6be0.tar.gz
manaverse-45f076bd429c40d81607f43837f1cc571f3f6be0.tar.bz2
manaverse-45f076bd429c40d81607f43837f1cc571f3f6be0.tar.xz
manaverse-45f076bd429c40d81607f43837f1cc571f3f6be0.zip
Improve a bit image load speed.
Diffstat (limited to 'src/resources/sdlimagehelper.cpp')
-rw-r--r--src/resources/sdlimagehelper.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/resources/sdlimagehelper.cpp b/src/resources/sdlimagehelper.cpp
index 40f3a4a53..b21f76b7f 100644
--- a/src/resources/sdlimagehelper.cpp
+++ b/src/resources/sdlimagehelper.cpp
@@ -40,8 +40,7 @@ bool SDLImageHelper::mEnableAlphaCache = false;
Image *SDLImageHelper::load(SDL_RWops *const rw, Dye const &dye)
{
- SDL_Surface *const tmpImage = IMG_Load_RW(rw, 1);
-
+ SDL_Surface *const tmpImage = loadPng(rw);
if (!tmpImage)
{
logger->log("Error, image load failed: %s", IMG_GetError());