diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-30 17:04:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-30 17:04:01 +0300 |
commit | 6356ac19cd30dd2774de08834ec6b7afba54a3c8 (patch) | |
tree | ec8667e401f603c88a2f64357433336e867a6a0f /src/render/sdl2graphics.cpp | |
parent | f98e1eb985bd5d694cd8fce323e5f4c3767dfe71 (diff) | |
download | ManaVerse-6356ac19cd30dd2774de08834ec6b7afba54a3c8.tar.gz ManaVerse-6356ac19cd30dd2774de08834ec6b7afba54a3c8.tar.bz2 ManaVerse-6356ac19cd30dd2774de08834ec6b7afba54a3c8.tar.xz ManaVerse-6356ac19cd30dd2774de08834ec6b7afba54a3c8.zip |
Improve calcImageRect in renderers.
Diffstat (limited to 'src/render/sdl2graphics.cpp')
-rw-r--r-- | src/render/sdl2graphics.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/render/sdl2graphics.cpp b/src/render/sdl2graphics.cpp index 45f09f0f7..dfa9cfb3f 100644 --- a/src/render/sdl2graphics.cpp +++ b/src/render/sdl2graphics.cpp @@ -564,10 +564,7 @@ bool SDLGraphics::calcWindow(ImageCollection *const vertCol, } const Image *const *const grid = &imgRect.grid[0]; - return calcImageRect(vert, x, y, w, h, - grid[0], grid[2], grid[6], grid[8], - grid[1], grid[5], grid[7], grid[3], - grid[4]); + return calcImageRect(vert, x, y, w, h, imgRect); } void SDLGraphics::fillRectangle(const gcn::Rectangle &rectangle) |