Stats display update.
This commit is contained in:
parent
8732bbde9c
commit
1eb9530fb5
|
@ -82,20 +82,16 @@ void drawStats(void)
|
||||||
int i, y, startIndex;
|
int i, y, startIndex;
|
||||||
SDL_Rect r;
|
SDL_Rect r;
|
||||||
|
|
||||||
SDL_SetRenderDrawBlendMode(app.renderer, SDL_BLENDMODE_BLEND);
|
drawRect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0, 0, 0, 128);
|
||||||
SDL_SetRenderDrawColor(app.renderer, 0, 0, 0, 128);
|
|
||||||
SDL_RenderFillRect(app.renderer, NULL);
|
|
||||||
SDL_SetRenderDrawBlendMode(app.renderer, SDL_BLENDMODE_NONE);
|
|
||||||
|
|
||||||
r.w = 500;
|
r.w = 500;
|
||||||
r.h = 600;
|
r.h = 600;
|
||||||
r.x = (SCREEN_WIDTH / 2) - r.w / 2;
|
r.x = (SCREEN_WIDTH / 2) - r.w / 2;
|
||||||
r.y = (SCREEN_HEIGHT / 2) - r.h / 2;
|
r.y = (SCREEN_HEIGHT / 2) - r.h / 2;
|
||||||
|
|
||||||
SDL_SetRenderDrawColor(app.renderer, 0, 0, 0, 0);
|
drawRect(r.x, r.y, r.w, r.h, 0, 0, 0, 192);
|
||||||
SDL_RenderFillRect(app.renderer, &r);
|
|
||||||
SDL_SetRenderDrawColor(app.renderer, 200, 200, 200, 255);
|
drawOutlineRect(r.x, r.y, r.w, r.h, 200, 200, 200, 255);
|
||||||
SDL_RenderDrawRect(app.renderer, &r);
|
|
||||||
|
|
||||||
drawText(SCREEN_WIDTH / 2, 70, 28, TA_CENTER, colors.white, "Stats");
|
drawText(SCREEN_WIDTH / 2, 70, 28, TA_CENTER, colors.white, "Stats");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue