forked from Ports/perfect_dark
Merge pull request #130 from Phnod/rotated-text-cutoff-fix
fix: remove height trim on rotated text
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -1790,7 +1790,7 @@ Gfx *text0f15568c(Gfx *gdl, s32 *x, s32 *y, struct fontchar *curchar, struct fon
|
||||
(*x + curchar->width) * 4 + var8007fadc,
|
||||
G_TX_RENDERTILE,
|
||||
var8007fae8 + 32,
|
||||
((curchar->height - 1) << 5) + var8007fae4 + 32,
|
||||
((curchar->height) << 5) + var8007fae4 + 32,
|
||||
1024,
|
||||
65536 - 1024 / var8007fad0);
|
||||
} else {
|
||||
|
||||
+1
-1
@@ -3011,7 +3011,7 @@ Gfx *dialogRender(Gfx *gdl, struct menudialog *dialog, struct menu *menu, bool l
|
||||
|
||||
textMeasure(&textheight, &textwidth, title, g_CharsHandelGothicXs, g_FontHandelGothicXs, 0);
|
||||
|
||||
x = dialogleft - 1;
|
||||
x = dialogleft - 2;
|
||||
y = (dialogtop + dialogbottom) / 2 - textwidth - 3;
|
||||
|
||||
if (y < dialogtop) {
|
||||
|
||||
Reference in new issue
Block a user