From cde2c55d15eb912735dac1ea0c2743959cc85be9 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Thu, 6 Aug 2020 08:22:10 +0300 Subject: macOS: Cleanup --- src/main.c | 8 ++++++-- src/ui/macos.m | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'src') 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 @@ #include "app.h" -extern void enableWheel_MacOS(void); +#if defined (iPlatformApple) +extern void enableMomentumScroll_MacOS(void); +#endif int main(int argc, char **argv) { - enableWheel_MacOS(); +#if defined (iPlatformApple) + enableMomentumScroll_MacOS(); +#endif #if defined (iPlatformMsys) /* MSYS runtime takes care of WinMain. */ 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 { @end -void enableWheel_MacOS(void) { +void enableMomentumScroll_MacOS(void) { [[NSUserDefaults standardUserDefaults] setBool: YES forKey: @"AppleMomentumScrollSupported"]; } -- cgit v1.2.3