mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-06 07:20:48 +00:00
Removing SDL_Colour macro
This commit is contained in:
parent
baf09904b3
commit
9b5944a14f
4 changed files with 10 additions and 1 deletions
|
@ -3124,3 +3124,8 @@ typedef SDL_eventaction, SDL_EventAction;
|
||||||
@@
|
@@
|
||||||
- SDL_eventaction
|
- SDL_eventaction
|
||||||
+ SDL_EventAction
|
+ SDL_EventAction
|
||||||
|
@@
|
||||||
|
typedef SDL_Colour, SDL_Color;
|
||||||
|
@@
|
||||||
|
- SDL_Colour
|
||||||
|
+ SDL_Color
|
||||||
|
|
|
@ -977,6 +977,9 @@ The following functions have been renamed:
|
||||||
* SDL_MasksToPixelFormatEnum() => SDL_GetPixelFormatEnumForMasks()
|
* SDL_MasksToPixelFormatEnum() => SDL_GetPixelFormatEnumForMasks()
|
||||||
* SDL_PixelFormatEnumToMasks() => SDL_GetMasksForPixelFormatEnum()
|
* SDL_PixelFormatEnumToMasks() => SDL_GetMasksForPixelFormatEnum()
|
||||||
|
|
||||||
|
The following macros have been removed:
|
||||||
|
* SDL_Colour - use SDL_Color instead
|
||||||
|
|
||||||
## SDL_platform.h
|
## SDL_platform.h
|
||||||
|
|
||||||
The following platform preprocessor macros have been renamed:
|
The following platform preprocessor macros have been renamed:
|
||||||
|
|
|
@ -388,6 +388,7 @@
|
||||||
/* ##SDL_pixels.h */
|
/* ##SDL_pixels.h */
|
||||||
#define SDL_AllocFormat SDL_CreatePixelFormat
|
#define SDL_AllocFormat SDL_CreatePixelFormat
|
||||||
#define SDL_AllocPalette SDL_CreatePalette
|
#define SDL_AllocPalette SDL_CreatePalette
|
||||||
|
#define SDL_Colour SDL_Color
|
||||||
#define SDL_FreeFormat SDL_DestroyPixelFormat
|
#define SDL_FreeFormat SDL_DestroyPixelFormat
|
||||||
#define SDL_FreePalette SDL_DestroyPalette
|
#define SDL_FreePalette SDL_DestroyPalette
|
||||||
#define SDL_MasksToPixelFormatEnum SDL_GetPixelFormatEnumForMasks
|
#define SDL_MasksToPixelFormatEnum SDL_GetPixelFormatEnumForMasks
|
||||||
|
@ -888,6 +889,7 @@
|
||||||
/* ##SDL_pixels.h */
|
/* ##SDL_pixels.h */
|
||||||
#define SDL_AllocFormat SDL_AllocFormat_renamed_SDL_CreatePixelFormat
|
#define SDL_AllocFormat SDL_AllocFormat_renamed_SDL_CreatePixelFormat
|
||||||
#define SDL_AllocPalette SDL_AllocPalette_renamed_SDL_CreatePalette
|
#define SDL_AllocPalette SDL_AllocPalette_renamed_SDL_CreatePalette
|
||||||
|
#define SDL_Colour SDL_Colour_renamed_SDL_Color
|
||||||
#define SDL_FreeFormat SDL_FreeFormat_renamed_SDL_DestroyPixelFormat
|
#define SDL_FreeFormat SDL_FreeFormat_renamed_SDL_DestroyPixelFormat
|
||||||
#define SDL_FreePalette SDL_FreePalette_renamed_SDL_DestroyPalette
|
#define SDL_FreePalette SDL_FreePalette_renamed_SDL_DestroyPalette
|
||||||
#define SDL_MasksToPixelFormatEnum SDL_MasksToPixelFormatEnum_renamed_SDL_GetPixelFormatEnumForMasks
|
#define SDL_MasksToPixelFormatEnum SDL_MasksToPixelFormatEnum_renamed_SDL_GetPixelFormatEnumForMasks
|
||||||
|
|
|
@ -681,7 +681,6 @@ typedef struct SDL_Color
|
||||||
Uint8 b;
|
Uint8 b;
|
||||||
Uint8 a;
|
Uint8 a;
|
||||||
} SDL_Color;
|
} SDL_Color;
|
||||||
#define SDL_Colour SDL_Color
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The bits of this structure can be directly reinterpreted as a float-packed
|
* The bits of this structure can be directly reinterpreted as a float-packed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue