From 8674958cfb0cbf7681133d2b8aa3d370d800ef35 Mon Sep 17 00:00:00 2001 From: pentarctagon Date: Fri, 22 Mar 2024 12:54:32 -0500 Subject: [PATCH] fix help portraits scaling too large --- src/help/help_topic_generators.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/help/help_topic_generators.cpp b/src/help/help_topic_generators.cpp index 60736dd9ead..bb7c11c2105 100644 --- a/src/help/help_topic_generators.cpp +++ b/src/help/help_topic_generators.cpp @@ -324,7 +324,8 @@ std::string unit_topic_generator::operator()() const { } // without this, scaling down (SCALE_INTO below) and then scaling back up due to the pixel multiplier leads to ugly results - sz *= preferences::pixel_scale(); + // can't use the preferences value since it may be different than the actual value + sz *= video::get_pixel_scale(); // TODO: figure out why the second checks don't match but the last does if (has_male_portrait) {