From 62388e30be4cc7cdd8be84367a432b433c19bcb4 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Wed, 26 Aug 2020 22:33:19 +1000 Subject: [PATCH] - fix `C_SetNotifyFontScale()` for RR. Fixes #264. --- source/common/console/c_console.h | 2 +- source/core/console/c_console.cpp | 4 ++-- source/games/duke/src/game.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/common/console/c_console.h b/source/common/console/c_console.h index 592556b3a..d7cbe5d95 100644 --- a/source/common/console/c_console.h +++ b/source/common/console/c_console.h @@ -83,7 +83,7 @@ bool C_Responder (event_t *ev); void C_AddTabCommand (const char *name); void C_RemoveTabCommand (const char *name); void C_ClearTabCommands(); // Removes all tab commands -void C_SetNotifyFontScale(int scale); +void C_SetNotifyFontScale(double scale); extern const char *console_bar; diff --git a/source/core/console/c_console.cpp b/source/core/console/c_console.cpp index 731267c59..60de7b380 100644 --- a/source/core/console/c_console.cpp +++ b/source/core/console/c_console.cpp @@ -106,9 +106,9 @@ int ConBottom, ConScroll, RowAdjust; uint64_t CursorTicker; constate_e ConsoleState = c_up; -int NotifyFontScale = 1; +double NotifyFontScale = 1; -void C_SetNotifyFontScale(int scale) +void C_SetNotifyFontScale(double scale) { NotifyFontScale = scale; } diff --git a/source/games/duke/src/game.cpp b/source/games/duke/src/game.cpp index 24798eed6..f07caaef4 100644 --- a/source/games/duke/src/game.cpp +++ b/source/games/duke/src/game.cpp @@ -317,7 +317,7 @@ static void initTiles() static void Startup(void) { - if (isRR()) C_SetNotifyFontScale(2); + if (isRR()) C_SetNotifyFontScale(0.5); ud.god = 0; ud.m_respawn_items = 0; ud.m_respawn_monsters = 0;