mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- fixed: V_FindFontColor is not suitable for direct calls from JIT code, thanks to its FName parameter.
This commit is contained in:
parent
aa32acae25
commit
067e9de00a
1 changed files with 6 additions and 1 deletions
|
@ -1542,7 +1542,12 @@ DEFINE_ACTION_FUNCTION_NATIVE(FFont, StringWidth, StringWidth)
|
|||
ACTION_RETURN_INT(StringWidth(self, str));
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION_NATIVE(FFont, FindFontColor, V_FindFontColor)
|
||||
static int FindFontColor(int name)
|
||||
{
|
||||
return V_FindFontColor(ENamedName(name));
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION_NATIVE(FFont, FindFontColor, FindFontColor)
|
||||
{
|
||||
PARAM_PROLOGUE;
|
||||
PARAM_NAME(code);
|
||||
|
|
Loading…
Reference in a new issue