From 99f4641700198882f03672fd13551de8d6e3dd7f Mon Sep 17 00:00:00 2001 From: toaster Date: Thu, 30 Mar 2023 18:31:18 +0100 Subject: [PATCH] Improve level select icon handling - Make it full base resolution... - ...but use ClipRect to make it fit inside the window of the Stereo --- src/k_menudraw.c | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/src/k_menudraw.c b/src/k_menudraw.c index 31162482a..f938524a9 100644 --- a/src/k_menudraw.c +++ b/src/k_menudraw.c @@ -5944,14 +5944,23 @@ void M_DrawSoundTest(void) x = 24; y = 18; + V_SetClipRect( + x << FRACBITS, y << FRACBITS, + 272 << FRACBITS, 106 << FRACBITS, + 0 + ); + if (soundtest.current != NULL) { - K_DrawMapThumbnail( - x<sequence.map, - NULL); + if (soundtest.current->sequence.map < nummapheaders) + { + K_DrawMapThumbnail( + 0, 0, + BASEVIDWIDTH<sequence.map, + NULL); + } V_DrawThinString(x, y, (soundtest.playing ? highlightflags : 0)|V_ALLOWLOWERCASE|V_6WIDTHSPACE, soundtest.current->title); V_DrawThinString(x, (y += 10), V_ALLOWLOWERCASE|V_6WIDTHSPACE, va("%d", soundtest.currenttrack)); @@ -5969,6 +5978,8 @@ void M_DrawSoundTest(void) V_DrawThinString(x, (y += 10), V_ALLOWLOWERCASE|V_6WIDTHSPACE, va("%d", cv_soundtest.value)); } + V_ClearClipRect(); + x = currentMenu->x; for (i = 0; i < currentMenu->numitems; i++)