diff options
Diffstat (limited to 'src/menus.c')
| -rw-r--r-- | src/menus.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/menus.c b/src/menus.c index 09628aa..1359786 100644 --- a/src/menus.c +++ b/src/menus.c @@ -388,6 +388,18 @@ int LengthOfMenuText(char *textPtr) return width; } +int LengthOfSmallMenuText(char *textPtr) +{ + int width = 0; + + while (textPtr && *textPtr) { + width += AAFontWidths[(unsigned int) *textPtr]; + + textPtr++; + } + return width; +} + int RenderMenuText(char *textPtr, int sx, int sy, int alpha, enum AVPMENUFORMAT_ID format) { int width; |
