From 84e9c736f38032d10630389fd1c73e025dd9d1c8 Mon Sep 17 00:00:00 2001 From: Steven Fuller Date: Tue, 11 Dec 2001 00:53:34 +0000 Subject: Implemented the mp_config stubs. Fixed a small error with menus (wrong font size was being used in RenderMenuElement -- was visible with custom maps with long names). --- src/menus.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/menus.c') 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; -- cgit v1.3