Skip to content

Commit c6bbc9c

Browse files
committed
Now, when you press Alt+Win, the window becomes transparent.
1 parent e27c4da commit c6bbc9c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/xrGame/MainMenu.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ void CMainMenu::IR_OnKeyboardPress(int dik)
350350
{
351351
IWantMyMouseBackScreamed = true;
352352
pInput->GrabInput(false);
353+
SDL_SetWindowOpacity(Device.m_sdlWnd, 0.9f);
353354
}
354355

355356
if (SDL_SCANCODE_F12 == dik)
@@ -370,6 +371,7 @@ void CMainMenu::IR_OnKeyboardRelease(int dik)
370371
{
371372
IWantMyMouseBackScreamed = false;
372373
pInput->GrabInput(true);
374+
SDL_SetWindowOpacity(Device.m_sdlWnd, 1.f);
373375
}
374376

375377

0 commit comments

Comments
 (0)