summaryrefslogtreecommitdiffstats
path: root/src/view/MapView.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-09-26 03:08:15 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-09-26 03:08:15 +0200
commit9b91d6f3d0187e0daf29a262cf19ad08ba2b7cf5 (patch)
tree8dfd51b02ec59bb4965305292d8d57c3ab3606b1 /src/view/MapView.cpp
parent8e0395e39c52b148d5ff9ef9fdd6a6d33e7b86e9 (diff)
downloadrpgedit-9b91d6f3d0187e0daf29a262cf19ad08ba2b7cf5.tar
rpgedit-9b91d6f3d0187e0daf29a262cf19ad08ba2b7cf5.zip
Add support for rotated sprites
Diffstat (limited to 'src/view/MapView.cpp')
-rw-r--r--src/view/MapView.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/MapView.cpp b/src/view/MapView.cpp
index d8a69d5..c1c0639 100644
--- a/src/view/MapView.cpp
+++ b/src/view/MapView.cpp
@@ -59,7 +59,7 @@ MapView::MapView(const std::shared_ptr<Window> &window0, const std::vector<std::
.h = 0,
};
- SDL_Surface *sprite = spriteCache->get("tile", tileset[i]);
+ SDL_Surface *sprite = spriteCache->get("tile", tileset[i], 0);
SDL_SetSurfaceBlendMode(sprite, SDL_BLENDMODE_NONE);
SDL_BlitSurface(sprite, nullptr, surface, &rect);