SDL2: overlays for rotated games are still not right :(

This commit is contained in:
tmaul 2020-02-06 16:17:50 +00:00
parent 014d894adf
commit c6f4fecb6a

View File

@ -132,7 +132,7 @@ SDL_Texture* LoadOverlayImage(SDL_Renderer* renderer, SDL_Texture* loadedTexture
if (nRotateGame)
{
dstrect.y = desty + (desty/2);
dstrect.x = destx - (destx/2);
dstrect.x = (screenw - destx) / 2;
dstrect.h = destw;
dstrect.w = desth;
@ -426,7 +426,7 @@ static int Paint(int bValidate)
SDL_RenderClear(sdlRenderer);
if (nRotateGame)
{SDL_Point window_size = {nVidImageHeight, nVidImageWidth};
{
SDL_UpdateTexture(sdlTexture, NULL, pVidImage, nVidImagePitch);
if (nRotateGame && bFlipped)
{