From f54e352e1ca343cfac9092b6b8f51e242b0dd5b3 Mon Sep 17 00:00:00 2001 From: Petr Bartos Date: Thu, 29 Sep 2022 22:05:39 +0200 Subject: [PATCH] Add 1.3 option for supersampling --- android/app/src/main/cpp/code/q3_ui/ui_video.c | 8 +++++++- android/app/src/main/pakQ3Q/ui/ingame_system.menu | 2 +- android/app/src/main/pakQ3Q/ui/system.menu | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/android/app/src/main/cpp/code/q3_ui/ui_video.c b/android/app/src/main/cpp/code/q3_ui/ui_video.c index 96aac23d..78462d1a 100644 --- a/android/app/src/main/cpp/code/q3_ui/ui_video.c +++ b/android/app/src/main/cpp/code/q3_ui/ui_video.c @@ -254,7 +254,7 @@ GRAPHICS OPTIONS MENU #define NUM_REFRESHRATE 5 #define NUM_SHADOWS 3 #define NUM_RAILGUN 2 -#define NUM_SUPERSAMPLING 5 +#define NUM_SUPERSAMPLING 6 typedef struct { menuframework_s menu; @@ -478,6 +478,9 @@ static void GraphicsOptions_Event( void* ptr, int event ) { case 4: supersampling = 1.2; break; + case 5: + supersampling = 1.3; + break; } trap_Cvar_SetValue("vr_superSampling", supersampling); } @@ -618,6 +621,8 @@ static void GraphicsOptions_SetMenuItems( void ) s_graphicsoptions.supersampling.curvalue = 3; } else if (superSampling == 1.2f) { s_graphicsoptions.supersampling.curvalue = 4; + } else if (superSampling == 1.3f) { + s_graphicsoptions.supersampling.curvalue = 5; } else { s_graphicsoptions.supersampling.curvalue = 3; } @@ -683,6 +688,7 @@ void GraphicsOptions_MenuInit( void ) "1.0", "1.1", "1.2", + "1.3", NULL }; diff --git a/android/app/src/main/pakQ3Q/ui/ingame_system.menu b/android/app/src/main/pakQ3Q/ui/ingame_system.menu index 080c5ac3..82d1e9c6 100644 --- a/android/app/src/main/pakQ3Q/ui/ingame_system.menu +++ b/android/app/src/main/pakQ3Q/ui/ingame_system.menu @@ -200,7 +200,7 @@ itemDef { type ITEM_TYPE_MULTI text "Supersampling:" cvar "vr_superSampling" - cvarFloatList { "0.8" 0.8 "0.9" 0.9 "1.0" 1.0 "1.1" 1.1 "1.2" 1.2 } + cvarFloatList { "0.8" 0.8 "0.9" 0.9 "1.0" 1.0 "1.1" 1.1 "1.2" 1.2 "1.3" 1.3 } rect 0 70 256 20 textalign ITEM_ALIGN_RIGHT textalignx 133 diff --git a/android/app/src/main/pakQ3Q/ui/system.menu b/android/app/src/main/pakQ3Q/ui/system.menu index 62935d76..b8ff4928 100755 --- a/android/app/src/main/pakQ3Q/ui/system.menu +++ b/android/app/src/main/pakQ3Q/ui/system.menu @@ -103,7 +103,7 @@ itemDef { type ITEM_TYPE_MULTI text "Supersampling:" cvar "vr_superSampling" - cvarFloatList { "0.8" 0.8 "0.9" 0.9 "1.0" 1.0 "1.1" 1.1 "1.2" 1.2 } + cvarFloatList { "0.8" 0.8 "0.9" 0.9 "1.0" 1.0 "1.1" 1.1 "1.2" 1.2 "1.3" 1.3 } rect 99 67 256 20 textalign ITEM_ALIGN_RIGHT textalignx 128