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++)