summaryrefslogtreecommitdiff
path: root/src/render/sdl2graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/sdl2graphics.cpp')
-rw-r--r--src/render/sdl2graphics.cpp5
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)