Suspicion rendering tweaks.

This commit is contained in:
Steve 2016-05-16 17:04:32 +01:00
parent 7471371b61
commit 447fb22630
1 changed files with 7 additions and 0 deletions

View File

@ -587,6 +587,8 @@ static void drawSuspicionLevel(void)
{
SDL_Rect r;
battle.suspicionLevel = MIN(battle.suspicionLevel, MAX_SUSPICION_LEVEL);
drawText((SCREEN_WIDTH / 2) - 150, SCREEN_HEIGHT - 60, 18, TA_RIGHT, colors.white, _("Suspicion"));
r.x = (SCREEN_WIDTH / 2) - 140;
@ -594,6 +596,11 @@ static void drawSuspicionLevel(void)
r.w = 400;
r.h = 20;
SDL_SetRenderDrawBlendMode(app.renderer, SDL_BLENDMODE_BLEND);
SDL_SetRenderDrawColor(app.renderer, 0, 0, 0, 128);
SDL_RenderFillRect(app.renderer, &r);
SDL_SetRenderDrawBlendMode(app.renderer, SDL_BLENDMODE_NONE);
SDL_SetRenderDrawColor(app.renderer, 192, 192, 192, 255);
SDL_RenderDrawRect(app.renderer, &r);