Unified · Split
| @@ -96,7 +96,7 @@ int main(int argc, char *argv[]) · 95 unmodified lines | |||
| 96 | #ifdef _WIN32 | 96 | #ifdef _WIN32 |
| 97 | 97 | ||
| 98 | // ALT+F4 is used in FT2, but is "close program" in Windows... | 98 | // ALT+F4 is used in FT2, but is "close program" in Windows... |
| 99 | #if SDL_MAJOR_VERSION == 2 && SDL_MINOR_VERSION >= 0 && SDL_PATCHLEVEL >= 4 | 99 | #if SDL_MINOR_VERSION >= 24 || (SDL_MINOR_VERSION == 0 && SDL_PATCHLEVEL >= 4) |
| 100 | SDL_SetHint(SDL_HINT_WINDOWS_NO_CLOSE_ON_ALT_F4, "1"); | 100 | SDL_SetHint(SDL_HINT_WINDOWS_NO_CLOSE_ON_ALT_F4, "1"); |
| 101 | #endif | 101 | #endif |
| 102 | 102 | ||
| @@ -325,7 +325,7 @@ void handleSamplingUpdates(void) · 324 unmodified lines | |||
| 325 | 325 | ||
| 326 | void startSampling(void) | 326 | void startSampling(void) |
| 327 | { | 327 | { |
| 328 | #if SDL_PATCHLEVEL < 5 | 328 | #if SDL_MAJOR_VERSION == 2 && SDL_MINOR_VERSION == 0 && SDL_PATCHLEVEL < 5 |
| 329 | okBox(0, "System message", "This program needs to be compiled with SDL 2.0.5 or later to support audio sampling."); | 329 | okBox(0, "System message", "This program needs to be compiled with SDL 2.0.5 or later to support audio sampling."); |
| 330 | return; | 330 | return; |
| 331 | #else | 331 | #else |
| @@ -1016,7 +1016,7 @@ bool setupRenderer(void) · 1015 unmodified lines | |||
| 1016 | 1016 | ||
| 1017 | SDL_RenderSetLogicalSize(video.renderer, SCREEN_W, SCREEN_H); | 1017 | SDL_RenderSetLogicalSize(video.renderer, SCREEN_W, SCREEN_H); |
| 1018 | 1018 | ||
| 1019 | #if SDL_PATCHLEVEL >= 5 | 1019 | #if SDL_MINOR_VERSION >= 24 || (SDL_MINOR_VERSION == 0 && SDL_PATCHLEVEL >= 5) |
| 1020 | SDL_RenderSetIntegerScale(video.renderer, SDL_TRUE); | 1020 | SDL_RenderSetIntegerScale(video.renderer, SDL_TRUE); |
| 1021 | #endif | 1021 | #endif |
| 1022 | 1022 | ||