Draw dark overlay on main screen.
This commit is contained in:
parent
0ef2cda22e
commit
cc4829a3a6
|
@ -806,12 +806,12 @@ static void drawMenu(void)
|
||||||
{
|
{
|
||||||
SDL_Rect r;
|
SDL_Rect r;
|
||||||
|
|
||||||
SDL_SetRenderTarget(app.renderer, app.uiBuffer);
|
|
||||||
|
|
||||||
SDL_SetRenderDrawBlendMode(app.renderer, SDL_BLENDMODE_BLEND);
|
SDL_SetRenderDrawBlendMode(app.renderer, SDL_BLENDMODE_BLEND);
|
||||||
SDL_SetRenderDrawColor(app.renderer, 0, 0, 0, 128);
|
SDL_SetRenderDrawColor(app.renderer, 0, 0, 0, 128);
|
||||||
SDL_RenderFillRect(app.renderer, NULL);
|
SDL_RenderFillRect(app.renderer, NULL);
|
||||||
SDL_SetRenderDrawBlendMode(app.renderer, SDL_BLENDMODE_NONE);
|
SDL_SetRenderDrawBlendMode(app.renderer, SDL_BLENDMODE_NONE);
|
||||||
|
|
||||||
|
SDL_SetRenderTarget(app.renderer, app.uiBuffer);
|
||||||
|
|
||||||
r.w = 400;
|
r.w = 400;
|
||||||
r.h = 500;
|
r.h = 500;
|
||||||
|
|
Loading…
Reference in New Issue