Skip to content

Commit

Permalink
C loader targets a python alias (#2586)
Browse files Browse the repository at this point in the history
* C loader targets a python alias

which is not yet available when using static loader.
https://github.com/pygame-community/pygame-ce/blob/9d69a535b2b79d115e2a7db55d35fd541b140578/src_py/__init__.py#L135

* another alias

* Regenerate cython after changing away from using Python aliases

---------

Co-authored-by: Starbuck5 <46412508+Starbuck5@users.noreply.github.com>
  • Loading branch information
pmp-p and Starbuck5 authored Nov 24, 2023
1 parent 9d69a53 commit 8d96c29
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
23 changes: 17 additions & 6 deletions src_c/_sdl2/video.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src_c/cython/pygame/_sdl2/video.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ cdef extern from "SDL.h" nogil:


cdef extern from "pygame.h" nogil:
ctypedef class pygame.Color [object pgColorObject]:
ctypedef class pygame.color.Color [object pgColorObject]:
cdef Uint8 data[4]
cdef Uint8 len

Expand All @@ -404,7 +404,7 @@ cdef extern from "pygame.h" nogil:
PG_COLOR_HANDLE_RESTRICT_SEQ
PG_COLOR_HANDLE_ALL

ctypedef class pygame.Rect [object pgRectObject]:
ctypedef class pygame.rect.Rect [object pgRectObject]:
cdef SDL_Rect r
cdef object weakreflist

Expand Down

0 comments on commit 8d96c29

Please sign in to comment.