SDL API renaming: SDL_video.h

Fixes https://github.com/libsdl-org/SDL/issues/6880
This commit is contained in:
Sam Lantinga
2022-12-27 06:38:34 -08:00
parent cc0296c934
commit c6969df4d7
10 changed files with 26 additions and 12 deletions

View File

@@ -207,6 +207,10 @@
#define SDL_UpperBlit SDL_BlitSurface
#define SDL_UpperBlitScaled SDL_BlitSurfaceScaled
/* ##SDL_video.h */
#define SDL_GetPointDisplayIndex SDL_GetDisplayIndexForPoint
#define SDL_GetRectDisplayIndex SDL_GetDisplayIndexForRect
#else /* !SDL_ENABLE_OLD_NAMES */
/* ##SDL_audio.h */
@@ -377,6 +381,10 @@
#define SDL_UpperBlit SDL_UpperBlit_renamed_SDL_BlitSurface
#define SDL_UpperBlitScaled SDL_UpperBlitScaled_renamed_SDL_BlitSurfaceScaled
/* ##SDL_video.h */
#define SDL_GetPointDisplayIndex SDL_GetPointDisplayIndex_renamed_SDL_GetDisplayIndexForPoint
#define SDL_GetRectDisplayIndex SDL_GetRectDisplayIndex_renamed_SDL_GetDisplayIndexForRect
#endif /* SDL_ENABLE_OLD_NAMES */
#endif /* SDL_oldnames_h_ */