diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2021-03-03 01:53:06 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2021-03-03 01:53:06 +0300 |
commit | 72a022286d0588038019e879a2f475c7a31290c7 (patch) | |
tree | 40159bde6072897a40c33b40f76332b2773dc4de | |
parent | 1a1496517144cdb873c48604d15826ca75648c78 (diff) | |
download | takethis-72a022286d0588038019e879a2f475c7a31290c7.tar takethis-72a022286d0588038019e879a2f475c7a31290c7.tar.xz takethis-72a022286d0588038019e879a2f475c7a31290c7.zip |
.
-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); } { |