mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-09-22 23:18:01 +03:00
Fix ChipmunkSpriteEngine.SP_GetFontWidth
Use gfx_size_text. Fixes text layout issue in Rance 01.
This commit is contained in:
@@ -105,7 +105,7 @@ static bool ChipmunkSpriteEngine_SP_GetFontWidth(struct string *text, int *width
|
||||
return true;
|
||||
}
|
||||
|
||||
*width = SJIS_2BYTE(text->text[0]) ? text_sprite_ts.size : text_sprite_ts.size / 2;
|
||||
*width = gfx_size_text(&text_sprite_ts, text->text);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user