Skip to content

Commit

Permalink
Fix compatibility with SDL v2.0.18.
Browse files Browse the repository at this point in the history
I don't understand why SDL2 even provides those preprocessor macros.

Fixes #8.
  • Loading branch information
Clownacy committed Mar 5, 2024
1 parent 87673bb commit f560a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ bool Frontend::Initialise(const int argc, char** const argv, const FrameRateCall
frame_rate_callback = frame_rate_callback_param;

// Enable high-DPI support on Windows because SDL2 is bad at being a platform abstraction library
SDL_SetHint(SDL_HINT_WINDOWS_DPI_SCALING, "1");
SDL_SetHint("SDL_WINDOWS_DPI_SCALING", "1");

// Initialise SDL2
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_EVENTS | SDL_INIT_GAMECONTROLLER) < 0)
Expand Down

0 comments on commit f560a05

Please sign in to comment.