Skip to content

Commit

Permalink
xrGame: hide major version SDL calls
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed Sep 17, 2018
1 parent 7bd4385 commit 5fb4803
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xrGame/MainMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@ void CMainMenu::IR_OnKeyboardPress(int dik)
{
IWantMyMouseBackScreamed = true;
pInput->GrabInput(false);
#if SDL_VERSION_ATLEAST(2,0,5)
SDL_SetWindowOpacity(Device.m_sdlWnd, 0.9f);
#endif
}

if (SDL_SCANCODE_F12 == dik)
Expand All @@ -372,7 +374,9 @@ void CMainMenu::IR_OnKeyboardRelease(int dik)
{
IWantMyMouseBackScreamed = false;
pInput->GrabInput(true);
#if SDL_VERSION_ATLEAST(2,0,5)
SDL_SetWindowOpacity(Device.m_sdlWnd, 1.f);
#endif
}


Expand Down

0 comments on commit 5fb4803

Please sign in to comment.