Skip to content

Commit 5fb4803

Browse files
committed
xrGame: hide major version SDL calls
1 parent 7bd4385 commit 5fb4803

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/xrGame/MainMenu.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,9 @@ void CMainMenu::IR_OnKeyboardPress(int dik)
351351
{
352352
IWantMyMouseBackScreamed = true;
353353
pInput->GrabInput(false);
354+
#if SDL_VERSION_ATLEAST(2,0,5)
354355
SDL_SetWindowOpacity(Device.m_sdlWnd, 0.9f);
356+
#endif
355357
}
356358

357359
if (SDL_SCANCODE_F12 == dik)
@@ -372,7 +374,9 @@ void CMainMenu::IR_OnKeyboardRelease(int dik)
372374
{
373375
IWantMyMouseBackScreamed = false;
374376
pInput->GrabInput(true);
377+
#if SDL_VERSION_ATLEAST(2,0,5)
375378
SDL_SetWindowOpacity(Device.m_sdlWnd, 1.f);
379+
#endif
376380
}
377381

378382

0 commit comments

Comments
 (0)