Don't convert flags type to enum for WindowState (#43)

This commit is contained in:
Not-Nik 2023-07-07 02:08:45 +02:00
parent af773c79e2
commit ffe8091bc4
Failed to generate hash of commit
2 changed files with 4 additions and 6 deletions

View file

@ -46,7 +46,7 @@ def fix_pointer(name: str, t: str):
def fix_enums(arg_name, arg_type, func_name):
# Hacking specifc enums in here
# Hacking specific enums in here
# Raylib doesn't use the enums but rather the resulting ints
if arg_type == "int" or arg_type == "unsigned int":
if arg_name == "key":
@ -60,8 +60,6 @@ def fix_enums(arg_name, arg_type, func_name):
arg_type = "CameraMode"
elif arg_name == "gesture":
arg_type = "Gestures"
elif arg_name == "flags" and func_name in ["SetWindowState", "ClearWindowState", "SetConfigFlags"]:
arg_type = "ConfigFlags"
return arg_type