mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 09:23:37 +00:00
AGS: Also return real TTF height in TTFFontRenderer::GetTextHeight()
From upstream 5115943fce180fe3e0bd9fe3678faa2d01b6d474
This commit is contained in:
parent
d8335ed435
commit
9d9080ffda
@ -61,7 +61,7 @@ int TTFFontRenderer::GetTextWidth(const char *text, int fontNumber) {
|
||||
}
|
||||
|
||||
int TTFFontRenderer::GetTextHeight(const char *text, int fontNumber) {
|
||||
return alfont_text_height(_fontData[fontNumber].AlFont);
|
||||
return alfont_get_font_real_height(_fontData[fontNumber].AlFont);
|
||||
}
|
||||
|
||||
void TTFFontRenderer::RenderText(const char *text, int fontNumber, BITMAP *destination, int x, int y, int colour) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user