From 700ff96ea1ff6beb2776d16d2114891744cb13b4 Mon Sep 17 00:00:00 2001 From: FreakyMutantMan Date: Sun, 3 Nov 2024 19:58:47 -0800 Subject: [PATCH] Replaced background graphics with separated graphic lumps; added a button on the menu to automatically revert to the default color profile. --- src/k_menu.h | 1 + src/k_menudraw.c | 12 ++++++---- src/menus/options-video-colorprofile.c | 32 ++++++++++++++++++++++++-- 3 files changed, 39 insertions(+), 6 deletions(-) diff --git a/src/k_menu.h b/src/k_menu.h index fbb34dcc8..8b70d09c5 100644 --- a/src/k_menu.h +++ b/src/k_menu.h @@ -1148,6 +1148,7 @@ void M_RefreshAdvancedVideoOptions(void); void M_HandleItemToggles(INT32 choice); // For item toggling void M_EraseData(INT32 choice); // For data erasing void M_CheckProfileData(INT32 choice); // check if we have profiles. +void M_ColorProfileDefault(INT32 choice); // For the reset button in the color profile menu. // profile selection menu void M_ProfileSelectInit(INT32 choice); diff --git a/src/k_menudraw.c b/src/k_menudraw.c index c8538d328..ae95c8798 100644 --- a/src/k_menudraw.c +++ b/src/k_menudraw.c @@ -4393,7 +4393,9 @@ void M_DrawOptionsColorProfile(void) // the background isn't drawn outside of being in the main menu state. if (gamestate == GS_MENU && solidbg) { - patch_t *back = W_CachePatchName(va("OPT_BC%u", tick), PU_CACHE); + patch_t *back = W_CachePatchName(va("OPT_BG%u", tick), PU_CACHE); + patch_t *colorp_photo = W_CachePatchName("COL_PHO", PU_CACHE); + patch_t *colorp_bar = W_CachePatchName("COL_BAR", PU_CACHE); INT32 tflag = 0; UINT8 *c; UINT8 *c2; // colormap for the one we're changing @@ -4409,6 +4411,8 @@ void M_DrawOptionsColorProfile(void) } c = R_GetTranslationColormap(TC_DEFAULT, optionsmenu.currcolour, GTC_CACHE); V_DrawFixedPatch(0, 0, FRACUNIT, tflag, back, c); + V_DrawFixedPatch(243<