Draw dark overlay on main screen.

This commit is contained in:
Steve 2018-12-21 07:27:47 +00:00
parent 0ef2cda22e
commit cc4829a3a6
1 changed files with 2 additions and 2 deletions

View File

@ -806,13 +806,13 @@ static void drawMenu(void)
{
SDL_Rect r;
SDL_SetRenderTarget(app.renderer, app.uiBuffer);
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);
SDL_SetRenderTarget(app.renderer, app.uiBuffer);
r.w = 400;
r.h = 500;
r.x = (UI_WIDTH / 2) - r.w / 2;