Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #10 #15

Merged
merged 1 commit into from
Feb 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pygfxd.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,9 @@ def gfxd_arg_dflt(arg_num: int) -> None:
"""
lgfxd.gfxd_arg_dflt(arg_num)

lgfxd.gfxd_arg_fn.argtypes = [CFUNCTYPE(c_int)]
lgfxd.gfxd_arg_fn.argtypes = [CFUNCTYPE(None, c_int)]
lgfxd.gfxd_arg_fn.restype = None
def gfxd_arg_fn(fn: Callable[[], int]) -> None:
def gfxd_arg_fn(fn: Callable[[int], None]) -> None:
"""
Set fn to be the argument handler function, called by gfxd_macro_dflt, for each
argument in the current macro, not counting the dynamic display list pointer if
Expand All @@ -470,7 +470,7 @@ def gfxd_arg_fn(fn: Callable[[], int]) -> None:
if fn is None:
lgfxd.gfxd_arg_fn(None)
return
cb = CFUNCTYPE(c_int)(fn)
cb = CFUNCTYPE(None, c_int)(fn)
__gfxd_buffers_callbacks.update({1001 : cb})
lgfxd.gfxd_arg_fn(cb)

Expand Down
Loading