mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 10:17:14 +00:00
GRAPHICS: Fix regression in font scaling code
This commit is contained in:
parent
873926f88c
commit
69aee0d228
@ -511,8 +511,8 @@ TextAlign convertTextAlignH(TextAlign alignH, bool rtl) {
|
||||
#define wholedivide(x, y) (((x)+((y)-1))/(y))
|
||||
|
||||
static void countupScore(int *dstGray, int x, int y, int bbw, int bbh, float scale) {
|
||||
int newbbw = (int)(roundf((float)bbw * scale));
|
||||
int newbbh = (int)(roundf((float)bbh * scale));
|
||||
int newbbw = bbw * scale;
|
||||
int newbbh = bbh * scale;
|
||||
int x_ = x * newbbw;
|
||||
int y_ = y * newbbh;
|
||||
int x1 = x_ + newbbw;
|
||||
|
Loading…
x
Reference in New Issue
Block a user