Skip to content

Commit 2551b5d

Browse files
committed
remove unnecessary checks for old sdl versions
1 parent 3469103 commit 2551b5d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Source/Main.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,12 +411,9 @@ int main(int argc, char** argv) {
411411

412412
SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS | SDL_INIT_GAMEPAD );
413413

414-
#if SDL_MINOR_VERSION > 22
415414
SDL_SetHint(SDL_HINT_MOUSE_AUTO_CAPTURE, "0");
416-
#endif
417-
418-
SDL_HideCursor();
419415
SDL_SetHint("SDL_ALLOW_TOPMOST", "0");
416+
SDL_HideCursor();
420417

421418
if (std::filesystem::exists("Base.rte/gamecontrollerdb.txt")) {
422419
SDL_AddGamepadMappingsFromFile("Base.rte/gamecontrollerdb.txt");

0 commit comments

Comments
 (0)