diff options
-rw-r--r-- | src/main.c | 8 | ||||
-rw-r--r-- | src/ui/macos.m | 2 |
2 files changed, 7 insertions, 3 deletions
@@ -7,10 +7,14 @@ | |||
7 | 7 | ||
8 | #include "app.h" | 8 | #include "app.h" |
9 | 9 | ||
10 | extern void enableWheel_MacOS(void); | 10 | #if defined (iPlatformApple) |
11 | extern void enableMomentumScroll_MacOS(void); | ||
12 | #endif | ||
11 | 13 | ||
12 | int main(int argc, char **argv) { | 14 | int main(int argc, char **argv) { |
13 | enableWheel_MacOS(); | 15 | #if defined (iPlatformApple) |
16 | enableMomentumScroll_MacOS(); | ||
17 | #endif | ||
14 | #if defined (iPlatformMsys) | 18 | #if defined (iPlatformMsys) |
15 | /* MSYS runtime takes care of WinMain. */ | 19 | /* MSYS runtime takes care of WinMain. */ |
16 | SDL_SetMainReady(); | 20 | SDL_SetMainReady(); |
diff --git a/src/ui/macos.m b/src/ui/macos.m index 46d2bfa1..bf5c2f84 100644 --- a/src/ui/macos.m +++ b/src/ui/macos.m | |||
@@ -333,7 +333,7 @@ enum iTouchBarVariant { | |||
333 | 333 | ||
334 | @end | 334 | @end |
335 | 335 | ||
336 | void enableWheel_MacOS(void) { | 336 | void enableMomentumScroll_MacOS(void) { |
337 | [[NSUserDefaults standardUserDefaults] setBool: YES | 337 | [[NSUserDefaults standardUserDefaults] setBool: YES |
338 | forKey: @"AppleMomentumScrollSupported"]; | 338 | forKey: @"AppleMomentumScrollSupported"]; |
339 | } | 339 | } |