mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 04:28:37 +00:00
GRAPHICS: Round border length to nearest interger
This commit is contained in:
parent
c0cf312748
commit
920a925265
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user