mirror of
https://github.com/libretro/FBNeo.git
synced 2024-11-23 08:59:39 +00:00
SDL2: overlays for rotated games are still not right :(
This commit is contained in:
parent
014d894adf
commit
c6f4fecb6a
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user