GRAPHICS: Round border length to nearest interger

This commit is contained in:
Avijeet 2022-07-17 02:21:13 +05:30 committed by Eugene Sandulenko
parent c0cf312748
commit 920a925265

View File

@ -149,7 +149,7 @@ void NinePatchSide::calcOffsets(int len, int titleIndex, int titleWidth) {
if (_m[i]->ratio == 0) {
_m[i]->dest_length = _m[i]->length;
} else {
_m[i]->dest_length = (len - _fix - titleWidth) * _m[i]->ratio;
_m[i]->dest_length = (len - _fix - titleWidth) * _m[i]->ratio + 0.5;
remaining_stretch -= _m[i]->dest_length;
j = i;
}