Multiply help portait scaling by the pixel multiplier.

Fixes #8275
This commit is contained in:
pentarctagon 2024-02-24 16:19:47 -06:00 committed by Pentarctagon
parent 6bb24810f1
commit bfdbaaf423

View file

@ -324,6 +324,9 @@ std::string unit_topic_generator::operator()() const {
sz = 400;
}
// 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();
// TODO: figure out why the second checks don't match but the last does
if (has_male_portrait) {
ss << "<img>src='" << male_portrait << "~FL(horiz)~SCALE_INTO(" << sz << ',' << sz << ")' box='no' align='right' float='yes'</img> ";