History

SDL 2.24.0 #ifdef fixes

Olav Sørensen committed 4 years ago

Commit 4a6e1091 parent ba8d4ea3 files · +3 −3Browse files

Unified · Split

3 files
  1. src/ft2_main.c +1 −1
  2. src/ft2_sampling.c +1 −1
  3. src/ft2_video.c +1 −1
src/ft2_main.c+1−1
@@ -96,7 +96,7 @@ int main(int argc, char *argv[]) · 95 unmodified lines
96#ifdef _WIN3296#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 >= 499#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#endif101#endif
102 102
src/ft2_sampling.c+1−1
@@ -325,7 +325,7 @@ void handleSamplingUpdates(void) · 324 unmodified lines
325 325
326void startSampling(void)326void startSampling(void)
327{327{
328#if SDL_PATCHLEVEL < 5328#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#else331#else
src/ft2_video.c+1−1
@@ -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 >= 51019#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#endif1021#endif
1022 1022

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t