From 1af79245e53cb9f202af6d37f24ceab8815b695f Mon Sep 17 00:00:00 2001 From: Jason Bou-Samra <154414066+bou-samra@users.noreply.github.com> Date: Wed, 2 Oct 2024 19:07:14 +1000 Subject: [PATCH] Update render.c --- src/render.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/render.c b/src/render.c index 3882b57..71e54f5 100644 --- a/src/render.c +++ b/src/render.c @@ -17,7 +17,7 @@ int last_time, current_time, deltatime, speed; bool wait = true; ///////////////// SPRITE SHEET TOP LEFT COORDINATES ///////////////// -// pink, green, purple, yellow, orange,cyan +// pink, green, purple, yellow, orange, cyan int spr_x[5][6] = { {0, 12, 24, 36, 48, 60}, // ball 1 {72, 84, 96, 108, 120, 132}, // square 1 @@ -148,6 +148,10 @@ int Ren_info(void) { ///////////////// DISPLAY PAUSE ///////////////// int Ren_pause(void) { + SDL_SetRenderDrawColor(sr, 0x0 , 0x0 , 0x0, 0xff); + SDL_RenderFillRect(sr, &main_back); // clear background + SDL_SetRenderDrawColor(sr, 0xff, 0xff, 0xff, 255); + SDL_RenderDrawRect(sr, &main_trim); // trim SDL_SetRenderDrawColor(sr, 0xff , 0xff , 0xff, 0xff); SDL_RenderFillRect(sr, &gameo_back); // background for (int z = 0; z < 1; z++) { // 1 line of text