From 92bf8c07880dc8c68c89fcee5b1326593e8134e5 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 14 May 2025 02:01:02 +0200 Subject: [PATCH 1/7] Make votescreen backgrounds resolution and dup independant also some slight cleanup currently this scales vertically to fill out the screen vertically not sure if horizontally would be preferred, but thatd most likely cut off alot of parts from some votebgs --- src/v_video.c | 8 ++++++++ src/v_video.h | 1 + src/y_inter.c | 28 +++++++++++++--------------- 3 files changed, 22 insertions(+), 15 deletions(-) diff --git a/src/v_video.c b/src/v_video.c index 65fcc3440..9bc09dd98 100644 --- a/src/v_video.c +++ b/src/v_video.c @@ -1562,6 +1562,14 @@ void V_DrawPatchFill(patch_t *pat) } } +// Draws a patch and scales it to fill out the screen vertically while remaining centered +void V_DrawCenteredScaledFullScreenPatch(patch_t *patch) +{ + fixed_t scale = FixedDiv(vid.height << FRACBITS, patch->height << FRACBITS); + fixed_t x = ((vid.width << FRACBITS) - FixedMul(patch->width << FRACBITS, scale)) / 2; // i fucking hate maths + V_DrawFixedPatch(x, 0, scale, V_NOSCALEPATCH, patch, NULL); +} + void V_DrawVhsEffect(boolean rewind) { static fixed_t upbary = 100*FRACUNIT, downbary = 150*FRACUNIT; diff --git a/src/v_video.h b/src/v_video.h index 00d0f6cb2..6b695b9c1 100644 --- a/src/v_video.h +++ b/src/v_video.h @@ -282,6 +282,7 @@ typedef struct player_s player_t; void V_DoPostProcessor(INT32 view, INT32 param); void V_DrawPatchFill(patch_t *pat); +void V_DrawCenteredScaledFullScreenPatch(patch_t *patch); void VID_BlitLinearScreen(const UINT8 *srcptr, UINT8 *destptr, INT32 width, INT32 height, size_t srcrowbytes, size_t destrowbytes); diff --git a/src/y_inter.c b/src/y_inter.c index 980ed0294..05357d237 100644 --- a/src/y_inter.c +++ b/src/y_inter.c @@ -912,35 +912,35 @@ static void Y_UnloadData(void) // static void Y_DrawAnimatedVoteScreenPatch(boolean widePatch) { + patch_t *votebg = NULL; char tempAnimPrefix[7]; - widePatch ? strcpy(tempAnimPrefix, animWidePrefix) : strcpy(tempAnimPrefix, animPrefix); - const INT32 tempFoundAnimVoteFrames = widePatch ? foundAnimVoteWideFrames : foundAnimVoteFrames; + strcpy(tempAnimPrefix, (widePatch ? animWidePrefix : animPrefix)); + const INT32 tempFoundAnimVoteFrames = (widePatch ? foundAnimVoteWideFrames : foundAnimVoteFrames) - 1; // Just in case someone provides LESS widescreen frames than normal frames or vice versa, reset the frame counter to 0 - if (currentAnimFrame > tempFoundAnimVoteFrames - 1) + if (currentAnimFrame > tempFoundAnimVoteFrames) currentAnimFrame = 0; - patch_t *background = W_CachePatchName(va("%s%d", tempAnimPrefix, currentAnimFrame + 1), PU_PATCH); - V_DrawScaledPatch(((vid.width/2) / vid.dupx) - (background->width/2), // Keep the width/height adjustments, for screens that are less wide than 320(?) - (vid.height / vid.dupy) - background->height, - V_SNAPTOTOP|V_SNAPTOLEFT, background); + votebg = W_CachePatchName(va("%s%d", tempAnimPrefix, currentAnimFrame + 1), PU_PATCH); - if (renderisnewtic && votetic % 2 == 0 && !paused) - currentAnimFrame = (currentAnimFrame + 1 > tempFoundAnimVoteFrames - 1) ? 0 : currentAnimFrame + 1; + V_DrawCenteredScaledFullScreenPatch(votebg); + + if (renderisnewtic && (votetic % 2 == 0) && !paused) + currentAnimFrame = (currentAnimFrame + 1 > tempFoundAnimVoteFrames) ? 0 : (currentAnimFrame + 1); } static void Y_DrawVoteScreenPatch(void) { + patch_t *votebg = NULL; const boolean widescreen = (vid.width / vid.dupx > 320); - const boolean animvote = (foundAnimVoteWideFrames || foundAnimVoteFrames); - if (animvote) + if (foundAnimVoteWideFrames || foundAnimVoteFrames) { Y_DrawAnimatedVoteScreenPatch((foundAnimVoteWideFrames && widescreen)); return; } - patch_t *votebg = bgpatch; // non widescreen patch + votebg = bgpatch; // non widescreen patch UINT8 prefgametype = (votelevels[0][1] & ~0x80); const boolean widebgreplaced = (prefgametype == GT_MATCH) ? widebattlereplaced : wideracereplaced; @@ -952,9 +952,7 @@ static void Y_DrawVoteScreenPatch(void) votebg = widebgpatch; } - V_DrawScaledPatch(((vid.width/2) / vid.dupx) - (votebg->width/2), - (vid.height / vid.dupy) - votebg->height, - V_SNAPTOTOP|V_SNAPTOLEFT, votebg); + V_DrawCenteredScaledFullScreenPatch(votebg); } // From 5a6a954d4fb3393781cbc40c993bf2ff27d56806 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 14 May 2025 15:51:41 +0200 Subject: [PATCH 2/7] make an adaptive votescreen patch scaler attempts to first fill the screen horizontally, if the screen is not filled vertically like that, it will then change the scaling to fill the screen vertically like this effectively every votebg fills up the screen and accomidates most bgs that added padding for the weird vanilla behaviour TODO: make the behaviour switchable --- src/v_video.c | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/src/v_video.c b/src/v_video.c index 9bc09dd98..de330cfa5 100644 --- a/src/v_video.c +++ b/src/v_video.c @@ -1563,13 +1563,51 @@ void V_DrawPatchFill(patch_t *pat) } // Draws a patch and scales it to fill out the screen vertically while remaining centered -void V_DrawCenteredScaledFullScreenPatch(patch_t *patch) +/*void V_DrawCenteredScaledFullScreenPatch(patch_t *patch) { fixed_t scale = FixedDiv(vid.height << FRACBITS, patch->height << FRACBITS); fixed_t x = ((vid.width << FRACBITS) - FixedMul(patch->width << FRACBITS, scale)) / 2; // i fucking hate maths V_DrawFixedPatch(x, 0, scale, V_NOSCALEPATCH, patch, NULL); } +void V_DrawCenteredScaledFullScreenPatch(patch_t *patch) +{ + fixed_t scale = FixedDiv(vid.width << FRACBITS, patch->width << FRACBITS); + + fixed_t scaled_height = FixedMul(patch->height << FRACBITS, scale); + + fixed_t y = (vid.height << FRACBITS) - scaled_height; + + if (scaled_height < (vid.height << FRACBITS)) + { + y /= 2; + } + + V_DrawFixedPatch(0, y, scale, V_NOSCALEPATCH, patch, NULL); +}*/ + +void V_DrawCenteredScaledFullScreenPatch(patch_t *patch) +{ + fixed_t x = 0, y = 0, scale = FRACUNIT; + + //scale = FixedDiv(vid.width << FRACBITS, patch->width << FRACBITS); // fit the screen horizontally + scale = ((vid.width * FRACUNIT) / patch->width); // fit the screen horizontally + + + fixed_t scaled_height = FixedMul(patch->height << FRACBITS, scale); + + // however, if this means the patch doesent fill out the screen vertically then + if (scaled_height < (vid.height << FRACBITS)) + { + scale = ((vid.height * FRACUNIT) / patch->height); // scale it to fit the screen vertically + x = ((vid.width << FRACBITS) - FixedMul(patch->width << FRACBITS, scale)) / 2; + } + else + y = (vid.height << FRACBITS) - scaled_height; + + V_DrawFixedPatch(x, y, scale, V_NOSCALEPATCH, patch, NULL); +} + void V_DrawVhsEffect(boolean rewind) { static fixed_t upbary = 100*FRACUNIT, downbary = 150*FRACUNIT; From c47c6aa6e4efa7ffb0fb9fbe08325844d47676b2 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 14 May 2025 16:06:15 +0200 Subject: [PATCH 3/7] make votebg scaling behaviour changable --- src/screen.c | 5 +++++ src/screen.h | 2 ++ src/v_video.c | 56 ++++++++++++++++++++++++++------------------------- src/v_video.h | 5 ++++- src/y_inter.c | 26 ++++++++++++++++++++++-- 5 files changed, 64 insertions(+), 30 deletions(-) diff --git a/src/screen.c b/src/screen.c index 0a9468d25..0cb27dfad 100644 --- a/src/screen.c +++ b/src/screen.c @@ -65,6 +65,9 @@ consvar_t cv_renderview = {"renderview", "On", 0, CV_OnOff, NULL, 0, NULL, NULL, consvar_t cv_vhseffect = {"vhspause", "On", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL}; consvar_t cv_shittyscreen = {"televisionsignal", "Okay", CV_NOSHOWHELP, shittyscreen_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL}; +static CV_PossibleValue_t votescale_cons_t[] = {{0, "Vanilla"}, {1, "Adaptive"}, {1, "VerticalFill"}, {1, "HorizontalFill"}, {0, NULL}}; +consvar_t cv_votebgscaling = {"votebgscaling", "Adaptive", CV_SAVE, votescale_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL}; + static void Highreshudscale_OnChange(void); static CV_PossibleValue_t highreshudscale_cons_t[] = {{4*FRACUNIT/5, "MIN"}, {6*FRACUNIT/5, "MAX"}, {0, NULL}}; consvar_t cv_highreshudscale = {"highreshudscale", "1", CV_SAVE|CV_FLOAT|CV_CALL|CV_NOINIT|CV_NOSHOWHELP, highreshudscale_cons_t, Highreshudscale_OnChange, 0, NULL, NULL, 0, 0, NULL}; @@ -216,6 +219,8 @@ void SCR_Startup(void) CV_RegisterVar(&cv_bsaturation); CV_RegisterVar(&cv_msaturation); + CV_RegisterVar(&cv_votebgscaling); + V_SetPalette(0); } diff --git a/src/screen.h b/src/screen.h index 4a97e159b..224897def 100644 --- a/src/screen.h +++ b/src/screen.h @@ -153,6 +153,8 @@ extern consvar_t cv_timescale; extern consvar_t cv_alwaysgrabmouse; +extern consvar_t cv_votebgscaling; + // quick fix for tall/short skies, depending on bytesperpixel extern void (*walldrawerfunc)(void); diff --git a/src/v_video.c b/src/v_video.c index de330cfa5..9ce67dde6 100644 --- a/src/v_video.c +++ b/src/v_video.c @@ -1562,38 +1562,13 @@ void V_DrawPatchFill(patch_t *pat) } } -// Draws a patch and scales it to fill out the screen vertically while remaining centered -/*void V_DrawCenteredScaledFullScreenPatch(patch_t *patch) -{ - fixed_t scale = FixedDiv(vid.height << FRACBITS, patch->height << FRACBITS); - fixed_t x = ((vid.width << FRACBITS) - FixedMul(patch->width << FRACBITS, scale)) / 2; // i fucking hate maths - V_DrawFixedPatch(x, 0, scale, V_NOSCALEPATCH, patch, NULL); -} - -void V_DrawCenteredScaledFullScreenPatch(patch_t *patch) -{ - fixed_t scale = FixedDiv(vid.width << FRACBITS, patch->width << FRACBITS); - - fixed_t scaled_height = FixedMul(patch->height << FRACBITS, scale); - - fixed_t y = (vid.height << FRACBITS) - scaled_height; - - if (scaled_height < (vid.height << FRACBITS)) - { - y /= 2; - } - - V_DrawFixedPatch(0, y, scale, V_NOSCALEPATCH, patch, NULL); -}*/ - -void V_DrawCenteredScaledFullScreenPatch(patch_t *patch) +// Draws a patch and tries to always fill the screen with the patch +void V_DrawAdaptiveScaledFullScreenPatch(patch_t *patch) { fixed_t x = 0, y = 0, scale = FRACUNIT; - //scale = FixedDiv(vid.width << FRACBITS, patch->width << FRACBITS); // fit the screen horizontally scale = ((vid.width * FRACUNIT) / patch->width); // fit the screen horizontally - fixed_t scaled_height = FixedMul(patch->height << FRACBITS, scale); // however, if this means the patch doesent fill out the screen vertically then @@ -1608,6 +1583,33 @@ void V_DrawCenteredScaledFullScreenPatch(patch_t *patch) V_DrawFixedPatch(x, y, scale, V_NOSCALEPATCH, patch, NULL); } +// Draws a patch and scales it to fill out the screen vertically while remaining centered +void V_DrawVerticallyScaledFullScreenPatch(patch_t *patch) +{ + fixed_t scale = ((vid.height * FRACUNIT) / patch->height); + fixed_t x = ((vid.width << FRACBITS) - FixedMul(patch->width << FRACBITS, scale)) / 2; // i fucking hate maths + V_DrawFixedPatch(x, 0, scale, V_NOSCALEPATCH, patch, NULL); +} + +// Draws a patch and scales it to fill out the screen horizontally +// centers the patch when its too small to fit the screen vertically +void V_DrawHorizontallyScaledFullScreenPatch(patch_t *patch) +{ + fixed_t scale = ((vid.width * FRACUNIT) / patch->width); + + fixed_t scaled_height = FixedMul(patch->height << FRACBITS, scale); + + fixed_t y = (vid.height << FRACBITS) - scaled_height; + + // center it if it does not fit the screen vertically + if (scaled_height < (vid.height << FRACBITS)) + { + y /= 2; + } + + V_DrawFixedPatch(0, y, scale, V_NOSCALEPATCH, patch, NULL); +} + void V_DrawVhsEffect(boolean rewind) { static fixed_t upbary = 100*FRACUNIT, downbary = 150*FRACUNIT; diff --git a/src/v_video.h b/src/v_video.h index 6b695b9c1..3a8cf7396 100644 --- a/src/v_video.h +++ b/src/v_video.h @@ -282,7 +282,10 @@ typedef struct player_s player_t; void V_DoPostProcessor(INT32 view, INT32 param); void V_DrawPatchFill(patch_t *pat); -void V_DrawCenteredScaledFullScreenPatch(patch_t *patch); + +void V_DrawAdaptiveScaledFullScreenPatch(patch_t *patch); +void V_DrawVerticallyScaledFullScreenPatch(patch_t *patch); +void V_DrawHorizontallyScaledFullScreenPatch(patch_t *patch); void VID_BlitLinearScreen(const UINT8 *srcptr, UINT8 *destptr, INT32 width, INT32 height, size_t srcrowbytes, size_t destrowbytes); diff --git a/src/y_inter.c b/src/y_inter.c index 05357d237..48edf3a9e 100644 --- a/src/y_inter.c +++ b/src/y_inter.c @@ -906,6 +906,28 @@ static void Y_UnloadData(void) // SRB2Kart: Voting! +static void Y_DrawVoteBackground(patch_t *patch) +{ + switch (cv_votebgscaling.value) + { + case 1: // adaptive + V_DrawAdaptiveScaledFullScreenPatch(patch); + break; + case 2: // vertical-fill + V_DrawVerticallyScaledFullScreenPatch(patch); + break; + case 3: // horizontal-fill + V_DrawHorizontallyScaledFullScreenPatch(patch); + break; + case 0: // vanilla + default: + V_DrawScaledPatch(((vid.width/2) / vid.dupx) - (patch->width/2), + (vid.height / vid.dupy) - patch->height, + V_SNAPTOTOP|V_SNAPTOLEFT, patch); + break; + } +} + // Y_DrawAnimatedVoteScreenPatch // // Draw animated patch based on frame counter on vote screen @@ -923,7 +945,7 @@ static void Y_DrawAnimatedVoteScreenPatch(boolean widePatch) votebg = W_CachePatchName(va("%s%d", tempAnimPrefix, currentAnimFrame + 1), PU_PATCH); - V_DrawCenteredScaledFullScreenPatch(votebg); + Y_DrawVoteBackground(votebg); if (renderisnewtic && (votetic % 2 == 0) && !paused) currentAnimFrame = (currentAnimFrame + 1 > tempFoundAnimVoteFrames) ? 0 : (currentAnimFrame + 1); @@ -952,7 +974,7 @@ static void Y_DrawVoteScreenPatch(void) votebg = widebgpatch; } - V_DrawCenteredScaledFullScreenPatch(votebg); + Y_DrawVoteBackground(votebg); } // From 5b6e7abd91b5cddaefefd6b6176bd17b241bb870 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 14 May 2025 16:09:59 +0200 Subject: [PATCH 4/7] fix copy paste error oops --- src/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screen.c b/src/screen.c index 0cb27dfad..cef838aaa 100644 --- a/src/screen.c +++ b/src/screen.c @@ -65,7 +65,7 @@ consvar_t cv_renderview = {"renderview", "On", 0, CV_OnOff, NULL, 0, NULL, NULL, consvar_t cv_vhseffect = {"vhspause", "On", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL}; consvar_t cv_shittyscreen = {"televisionsignal", "Okay", CV_NOSHOWHELP, shittyscreen_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL}; -static CV_PossibleValue_t votescale_cons_t[] = {{0, "Vanilla"}, {1, "Adaptive"}, {1, "VerticalFill"}, {1, "HorizontalFill"}, {0, NULL}}; +static CV_PossibleValue_t votescale_cons_t[] = {{0, "Vanilla"}, {1, "Adaptive"}, {2, "VerticalFill"}, {3, "HorizontalFill"}, {0, NULL}}; consvar_t cv_votebgscaling = {"votebgscaling", "Adaptive", CV_SAVE, votescale_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL}; static void Highreshudscale_OnChange(void); From db4d9a330a58542aff376f653a8bb4d399f06ba7 Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 16 May 2025 14:15:19 +0200 Subject: [PATCH 5/7] even more tiny cleanup votebg stuff --- src/v_video.c | 9 +++------ src/y_inter.c | 11 ++++++++--- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/v_video.c b/src/v_video.c index 9ce67dde6..0f3306696 100644 --- a/src/v_video.c +++ b/src/v_video.c @@ -1565,10 +1565,8 @@ void V_DrawPatchFill(patch_t *pat) // Draws a patch and tries to always fill the screen with the patch void V_DrawAdaptiveScaledFullScreenPatch(patch_t *patch) { - fixed_t x = 0, y = 0, scale = FRACUNIT; - - scale = ((vid.width * FRACUNIT) / patch->width); // fit the screen horizontally - + fixed_t x = 0, y = 0; + fixed_t scale = ((vid.width * FRACUNIT) / patch->width); // fit the screen horizontally fixed_t scaled_height = FixedMul(patch->height << FRACBITS, scale); // however, if this means the patch doesent fill out the screen vertically then @@ -1588,6 +1586,7 @@ void V_DrawVerticallyScaledFullScreenPatch(patch_t *patch) { fixed_t scale = ((vid.height * FRACUNIT) / patch->height); fixed_t x = ((vid.width << FRACBITS) - FixedMul(patch->width << FRACBITS, scale)) / 2; // i fucking hate maths + V_DrawFixedPatch(x, 0, scale, V_NOSCALEPATCH, patch, NULL); } @@ -1596,9 +1595,7 @@ void V_DrawVerticallyScaledFullScreenPatch(patch_t *patch) void V_DrawHorizontallyScaledFullScreenPatch(patch_t *patch) { fixed_t scale = ((vid.width * FRACUNIT) / patch->width); - fixed_t scaled_height = FixedMul(patch->height << FRACBITS, scale); - fixed_t y = (vid.height << FRACBITS) - scaled_height; // center it if it does not fit the screen vertically diff --git a/src/y_inter.c b/src/y_inter.c index 48edf3a9e..4ace2a562 100644 --- a/src/y_inter.c +++ b/src/y_inter.c @@ -934,21 +934,25 @@ static void Y_DrawVoteBackground(patch_t *patch) // static void Y_DrawAnimatedVoteScreenPatch(boolean widePatch) { + INT32 nextframe = 0; patch_t *votebg = NULL; char tempAnimPrefix[7]; + const INT32 tempFoundAnimVoteFrames = ((widePatch ? foundAnimVoteWideFrames : foundAnimVoteFrames) - 1); + strcpy(tempAnimPrefix, (widePatch ? animWidePrefix : animPrefix)); - const INT32 tempFoundAnimVoteFrames = (widePatch ? foundAnimVoteWideFrames : foundAnimVoteFrames) - 1; // Just in case someone provides LESS widescreen frames than normal frames or vice versa, reset the frame counter to 0 if (currentAnimFrame > tempFoundAnimVoteFrames) currentAnimFrame = 0; - votebg = W_CachePatchName(va("%s%d", tempAnimPrefix, currentAnimFrame + 1), PU_PATCH); + nextframe = (currentAnimFrame + 1); + + votebg = W_CachePatchName(va("%s%d", (widePatch ? animWidePrefix : animPrefix), nextframe), PU_PATCH); Y_DrawVoteBackground(votebg); if (renderisnewtic && (votetic % 2 == 0) && !paused) - currentAnimFrame = (currentAnimFrame + 1 > tempFoundAnimVoteFrames) ? 0 : (currentAnimFrame + 1); + currentAnimFrame = (nextframe > tempFoundAnimVoteFrames) ? 0 : nextframe; } static void Y_DrawVoteScreenPatch(void) @@ -1027,6 +1031,7 @@ void Y_VoteDrawer(void) } y = (200-height)/2; + for (i = 0; i < 4; i++) { const char *str; From 5899a0c4536f7f983f5624160cfb82740f636f3d Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 16 May 2025 14:22:03 +0200 Subject: [PATCH 6/7] ok even more cleanup for animvote check --- src/y_inter.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/y_inter.c b/src/y_inter.c index 4ace2a562..3c0a77ac1 100644 --- a/src/y_inter.c +++ b/src/y_inter.c @@ -294,27 +294,23 @@ static void Y_CalculateMatchData(UINT8 rankingsmode, void (*comparison)(INT32)) static void Y_AnimatedVoteScreenCheck(void) { char tmpPrefix[] = "INTS"; - boolean stopSearching = false; if (luaVoteScreen) strncpy(tmpPrefix, luaVoteScreen, 4); - else - { - if (G_BattleGametype()) - strcpy(tmpPrefix, "BTLS"); - } + else if (G_BattleGametype()) + strcpy(tmpPrefix, "BTLS"); strncpy(animPrefix, tmpPrefix, 4); animPrefix[4] = 'C'; strncpy(animWidePrefix, tmpPrefix, 4); animWidePrefix[4] = 'W'; - foundAnimVoteFrames = 0; - foundAnimVoteWideFrames = 0; + foundAnimVoteFrames = foundAnimVoteWideFrames = 0; currentAnimFrame = 0; INT32 i = 1; - while (!stopSearching) + + for (;;) { boolean normalLumpExists = W_LumpExists(va("%sC%d", tmpPrefix, i)); boolean wideLumpExists = W_LumpExists(va("%sW%d", tmpPrefix, i)); @@ -328,7 +324,7 @@ static void Y_AnimatedVoteScreenCheck(void) foundAnimVoteWideFrames++; } else // If we don't find at least frame 1 (e.g VEXTRN1), let's just stop looking - stopSearching = true; + break; i++; } From ed05a909cb9f38025a6790ab3ffd99650a0d9185 Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 19 May 2025 15:56:56 +0200 Subject: [PATCH 7/7] add vote scaling to menu --- src/m_menu.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/m_menu.c b/src/m_menu.c index b8198b650..75a905ce6 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -1555,15 +1555,17 @@ static menuitem_t OP_ExpOptionsMenu[] = {IT_STRING | IT_CVAR, NULL, "FPS counter sampling", &cv_accuratefps, 50}, + {IT_STRING | IT_CVAR, NULL, "Votescreen Scaling", &cv_votebgscaling, 60}, + #ifdef HWRENDER - {IT_STRING | IT_CVAR, NULL, "Screen Textures", &cv_glscreentextures, 60}, + {IT_STRING | IT_CVAR, NULL, "Screen Textures", &cv_glscreentextures, 70}, #ifdef USE_FBO_OGL - {IT_STRING | IT_CVAR, NULL, "FBO Downsampling support", &cv_glframebuffer, 65}, - {IT_STRING | IT_CVAR, NULL, "Palette Depth", &cv_glpalettedepth, 75}, - {IT_DISABLED, NULL, "", NULL, 85}, // dummy text + {IT_STRING | IT_CVAR, NULL, "FBO Downsampling support", &cv_glframebuffer, 75}, + {IT_STRING | IT_CVAR, NULL, "Palette Depth", &cv_glpalettedepth, 85}, + {IT_DISABLED, NULL, "", NULL, 95}, // dummy text #else - {IT_STRING | IT_CVAR, NULL, "Palette Depth", &cv_glpalettedepth, 70}, - {IT_DISABLED, NULL, "", NULL, 80}, // dummy text + {IT_STRING | IT_CVAR, NULL, "Palette Depth", &cv_glpalettedepth, 80}, + {IT_DISABLED, NULL, "", NULL, 90}, // dummy text #endif #endif }; @@ -1578,6 +1580,7 @@ static const char* OP_ExpTooltips[] = //"Should the directional lightning be randomized each map?\nTakes effect on next map load.", "Toggle being able to see the sky.", "Change the FPS counter sampling method\nInaccurate updates slower and might miss frame drops and such\nAccurate updates faster and is more accurate, but might be less readable", // how to ingles?? + "Different methods of scaling the votescreen backgrounds.", #ifdef HWRENDER "Should the game do Screen Textures? Provides a good boost to frames\nat the cost of some visual effects not working when disabled.", #ifdef USE_FBO_OGL