- 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 committed by drfrag
parent 4049b56d50
commit fc4b757b17

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