From b65eaf1a51bb9f30264748f253b6e6a8a406add4 Mon Sep 17 00:00:00 2001 From: James R Date: Wed, 29 Mar 2023 00:37:45 -0700 Subject: [PATCH] devmode music: reorder volume to the top and add empty space for readability --- src/st_stuff.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/st_stuff.c b/src/st_stuff.c index 9774f36f0..39d4d841c 100644 --- a/src/st_stuff.c +++ b/src/st_stuff.c @@ -360,10 +360,15 @@ static INT32 SCR(INT32 r) // Devmode information +static void ST_pushRow(INT32 *height) +{ + *height -= 4; +} + static void ST_pushDebugString(INT32 *height, const char *string) { V_DrawRightAlignedSmallString(319, *height, V_MONOSPACE, string); - *height -= 4; + ST_pushRow(height); } static void ST_pushDebugTimeMS(INT32 *height, const char *label, UINT32 ms) @@ -401,10 +406,7 @@ static void ST_drawMusicDebug(INT32 *height) ST_pushDebugTimeMS(height, " Loop A: ", S_GetMusicLoopPoint()); } - if (def) - { - ST_pushDebugString(height, va(" Volume: %4d/100", def->volume)); - } + ST_pushRow(height); if (format) { @@ -412,6 +414,12 @@ static void ST_drawMusicDebug(INT32 *height) } ST_pushDebugString(height, va(" Song: %8s", mname)); + + if (def) + { + ST_pushRow(height); + ST_pushDebugString(height, va(" Volume: %4d/100", def->volume)); + } } void ST_drawDebugInfo(void)