summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-08-02 03:30:03 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-08-02 03:30:23 +0200
commit33032808e024b6dade5b751f15f4878edd507787 (patch)
treef451fba79080bdeb0c4d9f10c215cff3653491e7 /src/graphics.cpp
parent7e8ba785e95385d32024e151697d2e6d4ec61ef3 (diff)
downloadmana-client-33032808e024b6dade5b751f15f4878edd507787.tar.gz
mana-client-33032808e024b6dade5b751f15f4878edd507787.tar.bz2
mana-client-33032808e024b6dade5b751f15f4878edd507787.tar.xz
mana-client-33032808e024b6dade5b751f15f4878edd507787.zip
Dynamically scaling background for login screen
Hacked Graphics::drawRescaledImage a bit to make it work...
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 61cc78ba..08b1b298 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -188,8 +188,8 @@ bool Graphics::drawRescaledImage(Image *image, int srcX, int srcY,
SDL_Rect srcRect;
dstRect.x = dstX; dstRect.y = dstY;
srcRect.x = srcX; srcRect.y = srcY;
- srcRect.w = width;
- srcRect.h = height;
+ srcRect.w = tmpImage->getWidth();
+ srcRect.h = tmpImage->getHeight();
returnValue = !(SDL_BlitSurface(tmpImage->mSDLSurface, &srcRect,
mTarget, &dstRect) < 0);