summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c8
-rw-r--r--src/ui/macos.m2
2 files changed, 7 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index a8f97d52..2acc71a6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -7,10 +7,14 @@
7 7
8#include "app.h" 8#include "app.h"
9 9
10extern void enableWheel_MacOS(void); 10#if defined (iPlatformApple)
11extern void enableMomentumScroll_MacOS(void);
12#endif
11 13
12int main(int argc, char **argv) { 14int 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
336void enableWheel_MacOS(void) { 336void enableMomentumScroll_MacOS(void) {
337 [[NSUserDefaults standardUserDefaults] setBool: YES 337 [[NSUserDefaults standardUserDefaults] setBool: YES
338 forKey: @"AppleMomentumScrollSupported"]; 338 forKey: @"AppleMomentumScrollSupported"];
339} 339}