From 7b3c89c98913ac9ebb6f34fa326a45853587e172 Mon Sep 17 00:00:00 2001 From: spherallic Date: Thu, 3 Feb 2022 12:03:44 +0100 Subject: [PATCH] Separate scale into pscale and vscale. --- src/st_stuff.c | 4 ++-- src/v_video.c | 31 +++++++++++++------------- src/v_video.h | 60 +++++++++++++++++++++++++------------------------- 3 files changed, 48 insertions(+), 47 deletions(-) diff --git a/src/st_stuff.c b/src/st_stuff.c index 9632ba31e..959075eed 100644 --- a/src/st_stuff.c +++ b/src/st_stuff.c @@ -505,10 +505,10 @@ static void ST_drawDebugInfo(void) V_DrawRightAlignedThinString(320, 8+lowh, VFLAGS|V_REDMAP, "SOME INFO NOT VISIBLE");\ return;\ }\ - V_DrawRightAlignedFontString(320, height, 8, 12, VFLAGS, textscale, str, hu_font);\ + V_DrawRightAlignedFontString(320, height, 8, 12, VFLAGS, textscale, textscale, str, hu_font);\ height += h; -#define V_DrawDebugFlag(f, str) V_DrawRightAlignedFontString(width, height, 8, 12, VFLAGS|f, textscale, str, hu_font);\ +#define V_DrawDebugFlag(f, str) V_DrawRightAlignedFontString(width, height, 8, 12, VFLAGS|f, textscale, textscale, str, hu_font);\ width -= w if (cv_debug & DBG_MEMORY) diff --git a/src/v_video.c b/src/v_video.c index b82d4c54b..e06b98788 100644 --- a/src/v_video.c +++ b/src/v_video.c @@ -2143,24 +2143,24 @@ char *V_WordWrap(INT32 x, INT32 w, INT32 option, const char *string) // Draw a string, using a supplied font and scale. // NOTE: The text is centered for screens larger than the base width. -void V_DrawFontString(INT32 x, INT32 y, INT32 width, INT32 height, INT32 option, fixed_t scale, const char *string, patch_t **font) +void V_DrawFontString(INT32 x, INT32 y, INT32 width, INT32 height, INT32 option, fixed_t pscale, fixed_t vscale, const char *string, patch_t **font) { - V_DrawFontStringAtFixed((fixed_t)x<