From bdf9abb13da0198893d755f0221ff1004ffa36d2 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Wed, 17 Jul 2024 22:24:15 +0800 Subject: [PATCH] [saco] Implement/match `GetDeathWindowFontSize()` --- saco/main.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/saco/main.cpp b/saco/main.cpp index 6bec272..f8f4381 100644 --- a/saco/main.cpp +++ b/saco/main.cpp @@ -526,3 +526,15 @@ int GetFontSize() return size + 2 * pConfig->GetIntVariable("fontsize"); } +int GetDeathWindowFontSize() +{ + int size = 14; + if (pGame->GetScreenWidth() < 1024) + size = 12; + + int fontsize = size + 2 * pConfig->GetIntVariable("fontsize"); + if(fontsize < size) + fontsize = size; + return fontsize; +} +