diff --git a/build-scripts/SDL_migration.cocci b/build-scripts/SDL_migration.cocci index d88603cfd..85e900776 100644 --- a/build-scripts/SDL_migration.cocci +++ b/build-scripts/SDL_migration.cocci @@ -3125,6 +3125,11 @@ typedef SDL_eventaction, SDL_EventAction; - SDL_eventaction + SDL_EventAction @@ +typedef SDL_RendererFlip, SDL_FlipMode; +@@ +- SDL_RendererFlip ++ SDL_FlipMode +@@ typedef SDL_Colour, SDL_Color; @@ - SDL_Colour diff --git a/docs/README-migration.md b/docs/README-migration.md index 4652a9568..30e50799a 100644 --- a/docs/README-migration.md +++ b/docs/README-migration.md @@ -1132,8 +1132,10 @@ The following functions have been removed: * SDL_RenderTargetSupported() - render targets are always supported * SDL_SetTextureUserData() - use SDL_GetTextureProperties() instead +The following enums have been renamed: +* SDL_RendererFlip => SDL_FlipMode - moved to SDL_surface.h + The following symbols have been renamed: -* SDL_RendererFlip => SDL_FlipMode * SDL_ScaleModeBest => SDL_SCALEMODE_BEST * SDL_ScaleModeLinear => SDL_SCALEMODE_LINEAR * SDL_ScaleModeNearest => SDL_SCALEMODE_NEAREST diff --git a/include/SDL3/SDL_oldnames.h b/include/SDL3/SDL_oldnames.h index d891b8911..3a78d85af 100644 --- a/include/SDL3/SDL_oldnames.h +++ b/include/SDL3/SDL_oldnames.h @@ -433,6 +433,7 @@ #define SDL_RenderDrawRectsF SDL_RenderRects #define SDL_RenderFillRectF SDL_RenderFillRect #define SDL_RenderFillRectsF SDL_RenderFillRects +#define SDL_RendererFlip SDL_FlipMode #define SDL_RenderFlush SDL_FlushRenderer #define SDL_RenderGetClipRect SDL_GetRenderClipRect #define SDL_RenderGetLogicalSize SDL_GetRenderLogicalPresentation @@ -940,6 +941,7 @@ #define SDL_RenderDrawRectsF SDL_RenderDrawRectsF_renamed_SDL_RenderRects #define SDL_RenderFillRectF SDL_RenderFillRectF_renamed_SDL_RenderFillRect #define SDL_RenderFillRectsF SDL_RenderFillRectsF_renamed_SDL_RenderFillRects +#define SDL_RendererFlip SDL_RendererFlip_renamed_SDL_FlipMode #define SDL_RenderFlush SDL_RenderFlush_renamed_SDL_FlushRenderer #define SDL_RenderGetClipRect SDL_RenderGetClipRect_renamed_SDL_GetRenderClipRect #define SDL_RenderGetLogicalSize SDL_RenderGetLogicalSize_renamed_SDL_GetRenderLogicalPresentation