Draw dark overlay on main screen.
This commit is contained in:
parent
0ef2cda22e
commit
cc4829a3a6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue