File tree 2 files changed +574
-433
lines changed
2 files changed +574
-433
lines changed Original file line number Diff line number Diff line change 47
47
#include <SDL.h>
48
48
#endif
49
49
50
+ #include "stdbool.h"
51
+
50
52
#if SDL_VERSION_ATLEAST (3 , 0 , 0 )
51
53
#define PG_ShowCursor SDL_ShowCursor
52
54
#define PG_HideCursor SDL_HideCursor
@@ -119,6 +121,8 @@ PG_UnlockMutex(SDL_mutex *mutex)
119
121
120
122
#define PG_INIT_TIMER 0
121
123
124
+ #define PG_GetSurfaceClipRect SDL_GetSurfaceClipRect
125
+
122
126
#else /* ~SDL_VERSION_ATLEAST(3, 0, 0)*/
123
127
#define PG_ShowCursor () SDL_ShowCursor(SDL_ENABLE)
124
128
#define PG_HideCursor () SDL_ShowCursor(SDL_DISABLE)
@@ -190,6 +194,12 @@ PG_UnlockMutex(SDL_mutex *mutex)
190
194
191
195
#define PG_SurfaceHasRLE SDL_HasSurfaceRLE
192
196
197
+ static inline bool
198
+ PG_GetSurfaceClipRect (SDL_Surface * surface , SDL_Rect * rect )
199
+ {
200
+ * rect = surface -> clip_rect ;
201
+ return true;
202
+ }
193
203
#endif
194
204
195
205
/* DictProxy is useful for event posting with an arbitrary dict. Maintains
You can’t perform that action at this time.
0 commit comments