summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2021-03-03 01:53:06 +0300
committerAleksey Veresov <aleksey@veresov.pro>2021-03-03 01:53:06 +0300
commit72a022286d0588038019e879a2f475c7a31290c7 (patch)
tree40159bde6072897a40c33b40f76332b2773dc4de /src
parent1a1496517144cdb873c48604d15826ca75648c78 (diff)
downloadtakethis-72a022286d0588038019e879a2f475c7a31290c7.tar
takethis-72a022286d0588038019e879a2f475c7a31290c7.tar.xz
takethis-72a022286d0588038019e879a2f475c7a31290c7.zip
.
Diffstat (limited to 'src')
-rw-r--r--src/game.c6
-rw-r--r--src/player.c3
2 files changed, 6 insertions, 3 deletions
diff --git a/src/game.c b/src/game.c
index 2503590..b46b1d9 100644
--- a/src/game.c
+++ b/src/game.c
@@ -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);
}
{