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).
This commit is contained in:
Steven Fuller 2001-12-11 00:53:34 +00:00 committed by Patryk Obara
parent 5e99463577
commit 84e9c736f3
3 changed files with 100 additions and 114 deletions

View file

@ -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;