From 9744b2266f117044f89d9619919124a3a9085cec Mon Sep 17 00:00:00 2001 From: fgsfds Date: Fri, 1 Sep 2023 09:22:09 +0200 Subject: [PATCH] port: dummy out hi-res and screen ratio options --- src/game/mainmenu.c | 2 ++ src/game/options.c | 4 ++++ src/game/player.c | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/src/game/mainmenu.c b/src/game/mainmenu.c index cff845e97..fd09690dc 100644 --- a/src/game/mainmenu.c +++ b/src/game/mainmenu.c @@ -2525,6 +2525,7 @@ struct menuitem g_VideoOptionsMenuItems[] = { 0, menuhandlerScreenSize, }, +#ifdef PLATFORM_N64 { MENUITEMTYPE_DROPDOWN, 0, @@ -2541,6 +2542,7 @@ struct menuitem g_VideoOptionsMenuItems[] = { 0, menuhandlerHiRes, }, +#endif #if PAL { MENUITEMTYPE_DROPDOWN, diff --git a/src/game/options.c b/src/game/options.c index 9a38dbe18..d8ff82093 100644 --- a/src/game/options.c +++ b/src/game/options.c @@ -296,7 +296,11 @@ s32 optionsGetScreenRatio(void) void optionsSetScreenRatio(s32 ratio) { +#ifdef PLATFORM_N64 g_ScreenRatio = ratio; +#else + g_ScreenRatio = SCREENRATIO_NORMAL; +#endif } u8 optionsGetScreenSplit(void) diff --git a/src/game/player.c b/src/game/player.c index e68aede10..905ac95e5 100644 --- a/src/game/player.c +++ b/src/game/player.c @@ -2792,7 +2792,11 @@ void playerResetLoResIf4Mb(void) void playerSetHiResEnabled(bool enable) { +#ifdef PLATFORM_N64 g_HiResEnabled = enable; +#else + g_HiResEnabled = false; +#endif } s16 playerGetFbWidth(void)