diff options
Diffstat (limited to 'resource-manager/spritesheet.cpp')
-rw-r--r-- | resource-manager/spritesheet.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/resource-manager/spritesheet.cpp b/resource-manager/spritesheet.cpp index c0e4d06..b6ff60e 100644 --- a/resource-manager/spritesheet.cpp +++ b/resource-manager/spritesheet.cpp @@ -16,6 +16,7 @@ SpriteSheet::SpriteSheet(const std::string& path){ } void SpriteSheet::set_spritesheet_data(SDL_Renderer& renderer, const int row, const int column){ + m_spritesheet->setTexture(renderer); m_clip.w = m_spritesheet->getSurface()->w / column; m_clip.h = m_spritesheet->getSurface()->h / row; } |