Help: use relative scaling for unit sprites (resolves #8401)
This commit is contained in:
parent
651e2866ba
commit
dd4aec0cdb
1 changed files with 2 additions and 2 deletions
|
@ -299,13 +299,13 @@ std::string unit_topic_generator::operator()() const {
|
|||
|
||||
ss << "<img>src='" << male_type.image();
|
||||
ss << "~RC(" << male_type.flag_rgb() << ">red)";
|
||||
if (screen_width >= 1200) ss << "~SCALE_SHARP(144,144)";
|
||||
if (screen_width >= 1200) ss << "~SCALE_SHARP(200%,200%)";
|
||||
ss << "' box='no'</img> ";
|
||||
|
||||
if (female_type.image() != male_type.image()) {
|
||||
ss << "<img>src='" << female_type.image();
|
||||
ss << "~RC(" << female_type.flag_rgb() << ">red)";
|
||||
if (screen_width >= 1200) ss << "~SCALE_SHARP(144,144)";
|
||||
if (screen_width >= 1200) ss << "~SCALE_SHARP(200%,200%)";
|
||||
ss << "' box='no'</img> ";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue