Auto-resize all buttons and fonts, when screen resoluition changes

This commit is contained in:
pelya
2014-03-23 17:19:30 +02:00
parent 982c84b3ee
commit 313e3b73b3
8 changed files with 43 additions and 6 deletions

View File

@@ -784,6 +784,7 @@ void NWidgetResizeBase::SetMinimalSize(uint min_x, uint min_y)
break;
default: NOT_REACHED();
}
min_size = RescaleFrom854x480(min_size);
this->min_x = max(min_x, min_size);
this->min_y = max(min_y, min_size);
@@ -2942,6 +2943,7 @@ uint GetMinSizing(NWidSizingType type, uint min_1)
break;
default: NOT_REACHED();
}
min_sizing = RescaleFrom854x480(min_sizing);
return max(min_sizing, min_1);
}