summaryrefslogtreecommitdiff
path: root/src/international_string_util.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-11-03 13:17:29 -0400
committerGitHub <noreply@github.com>2021-11-03 13:17:29 -0400
commite14210ce1f9be3ae894490a4e3050832aecbdde7 (patch)
tree6f91b9a6be1ec65ee31fef1883882a0a458236ac /src/international_string_util.c
parent0ba22ca1124bf5cf37ba2934fda4ec1a9cca02a6 (diff)
parent929aade0fd0e5ea0fba4e18650bda02e6a943ba5 (diff)
Merge pull request #1536 from GriffinRichards/clean-braille
Add font id constants, better braille support
Diffstat (limited to 'src/international_string_util.c')
-rw-r--r--src/international_string_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/international_string_util.c b/src/international_string_util.c
index b2ee9743e..ef779c698 100644
--- a/src/international_string_util.c
+++ b/src/international_string_util.c
@@ -40,7 +40,7 @@ int GetMaxWidthInMenuTable(const struct MenuAction *actions, int numActions)
for (maxWidth = 0, i = 0; i < numActions; i++)
{
- int stringWidth = GetStringWidth(1, actions[i].text, 0);
+ int stringWidth = GetStringWidth(FONT_NORMAL, actions[i].text, 0);
if (stringWidth > maxWidth)
maxWidth = stringWidth;
}
@@ -54,7 +54,7 @@ int GetMaxWidthInSubsetOfMenuTable(const struct MenuAction *actions, const u8* a
for (maxWidth = 0, i = 0; i < numActions; i++)
{
- int stringWidth = GetStringWidth(1, actions[actionIds[i]].text, 0);
+ int stringWidth = GetStringWidth(FONT_NORMAL, actions[actionIds[i]].text, 0);
if (stringWidth > maxWidth)
maxWidth = stringWidth;
}