diff --git a/src/texture.cpp b/src/texture.cpp index 442e486..3a4d376 100644 --- a/src/texture.cpp +++ b/src/texture.cpp @@ -225,7 +225,8 @@ namespace cloonel { ///-------------------------------------------------------------------------- void Texture::Render (int2 parPos, ushort2 parSize) const { assert(IsLoaded()); - const SDL_Rect dest = { parPos.x(), parPos.y(), parSize.x(), parSize.y() }; + const int screenHeight = m_sdlmain->DefWidthHeight().y(); + const SDL_Rect dest = { parPos.x(), screenHeight - parPos.y() - parSize.y(), parSize.x(), parSize.y() }; SDL_RenderCopy(m_sdlmain->GetRenderer(), m_texture, nullptr, &dest); } } //namespace cloonel