From 1eb9530fb59ecc1a5268e315fab35558dc2cf2a0 Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 19 Feb 2018 08:32:15 +0000 Subject: [PATCH] Stats display update. --- src/game/stats.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/game/stats.c b/src/game/stats.c index b7f5ef4..12390c8 100644 --- a/src/game/stats.c +++ b/src/game/stats.c @@ -82,20 +82,16 @@ void drawStats(void) int i, y, startIndex; SDL_Rect r; - SDL_SetRenderDrawBlendMode(app.renderer, SDL_BLENDMODE_BLEND); - SDL_SetRenderDrawColor(app.renderer, 0, 0, 0, 128); - SDL_RenderFillRect(app.renderer, NULL); - SDL_SetRenderDrawBlendMode(app.renderer, SDL_BLENDMODE_NONE); + drawRect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0, 0, 0, 128); r.w = 500; r.h = 600; r.x = (SCREEN_WIDTH / 2) - r.w / 2; r.y = (SCREEN_HEIGHT / 2) - r.h / 2; - SDL_SetRenderDrawColor(app.renderer, 0, 0, 0, 0); - SDL_RenderFillRect(app.renderer, &r); - SDL_SetRenderDrawColor(app.renderer, 200, 200, 200, 255); - SDL_RenderDrawRect(app.renderer, &r); + drawRect(r.x, r.y, r.w, r.h, 0, 0, 0, 192); + + drawOutlineRect(r.x, r.y, r.w, r.h, 200, 200, 200, 255); drawText(SCREEN_WIDTH / 2, 70, 28, TA_CENTER, colors.white, "Stats");