- fixed: V_FindFontColor is not suitable for direct calls from JIT code, thanks to its FName parameter.

This commit is contained in:
Christoph Oelckers 2018-12-01 14:23:27 +01:00
parent aa32acae25
commit 067e9de00a
1 changed files with 6 additions and 1 deletions

View File

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