Fix drawing of vertically clipped surfaces.

Also fix bottom platforms disappearing and wrong coordinates being
sent to the function that draws debug lines. Obviously debug lines
drawing is still messed up... but at least you see the two lines!
This commit is contained in:
King_DuckZ 2016-11-17 01:17:20 +01:00
parent 10f830809b
commit 706f1aaa0a
4 changed files with 6 additions and 5 deletions

View file

@ -388,7 +388,8 @@ namespace cloonel {
}
#endif
const SDL_Rect sdlsrc(src);
SDL_Rect sdlsrc(src);
sdlsrc.y = static_cast<decltype(sdlsrc.y)>(m_size.y()) - sdlsrc.y - sdlsrc.h;
SDL_Rect sdldst(dest);
sdldst.y = m_sdlmain->WidthHeight().y() - sdldst.y - sdldst.h;