diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game.c | 6 | ||||
-rw-r--r-- | src/player.c | 3 |
2 files changed, 6 insertions, 3 deletions
@@ -949,7 +949,8 @@ void changeroom(int out) } SDL_SetTextureAlphaMod(tttxr, 255); SDL_SetRenderTarget(ttrdr, 0); - SDL_RenderCopy(ttrdr, lighttxr, 0, 0); + SDL_Rect dst = { 0, 0, 950, 540 }; + SDL_RenderCopy(ttrdr, lighttxr, 0, &dst); } } { @@ -1023,7 +1024,8 @@ void changeroom(int out) } SDL_SetTextureAlphaMod(tttxr, 255); SDL_SetRenderTarget(ttrdr, 0); - SDL_RenderCopy(ttrdr, lighttxr, 0, 0); + SDL_Rect dst = { 0, 0, 950, 540 }; + SDL_RenderCopy(ttrdr, lighttxr, 0, &dst); } } { diff --git a/src/player.c b/src/player.c index e9e06fe..edf18e3 100644 --- a/src/player.c +++ b/src/player.c @@ -99,7 +99,8 @@ void tt_player_draw() } SDL_SetTextureAlphaMod(tttxr, 255); SDL_SetRenderTarget(ttrdr, 0); - SDL_RenderCopy(ttrdr, lighttxr, 0, 0); + SDL_Rect dst = { 0, 0, 950, 540 }; + SDL_RenderCopy(ttrdr, lighttxr, 0, &dst); } { |