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:
parent
5e99463577
commit
84e9c736f3
3 changed files with 100 additions and 114 deletions
12
src/menus.c
12
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue