Help: reduced threshold for 2x XBRZ scaling of sprites in help pages

[ci_skip]

It doesn't make any sense to disable this if the window size is bigger than the help window size.
This commit is contained in:
Charles Dang 2017-03-09 17:00:10 +11:00
parent 7488d6094c
commit a976d05c9b

View file

@ -246,14 +246,14 @@ std::string unit_topic_generator::operator()() const {
ss << "<img>src='" << male_type.image();
ss << "~RC(" << male_type.flag_rgb() << ">red)";
if (screen_width >= 1600) ss << "~XBRZ(2)";
if (screen_width >= 1200) ss << "~XBRZ(2)";
ss << "' box='no'</img> ";
if (&female_type != &male_type) {
ss << "<img>src='" << female_type.image();
ss << "~RC(" << female_type.flag_rgb() << ">red)";
if (screen_width >= 1600) ss << "~XBRZ(2)";
if (screen_width >= 1200) ss << "~XBRZ(2)";
ss << "' box='no'</img> ";
}