mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-02 16:08:30 +00:00
Added SDL_FLIP_DIAGONAL
Since SDL_RenderFlip is an enum, SDL_FLIP_HORIZONTAL and SDL_FLIP_VERTICAL can not be OR'ed to get the "SDL_FLIP_DIAGONAL". Render code is actually able to perform these 3 kind of "flipping" so I just added a new enum called SDL_FLIP_DIAGONAL with the OR'ed value (3) so it can be used.
This commit is contained in:
@@ -80,9 +80,10 @@ typedef enum
|
|||||||
*/
|
*/
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
SDL_FLIP_NONE, /**< Do not flip */
|
SDL_FLIP_NONE = 0x00, /**< Do not flip */
|
||||||
SDL_FLIP_HORIZONTAL, /**< flip horizontally */
|
SDL_FLIP_HORIZONTAL = 0x01, /**< flip horizontally */
|
||||||
SDL_FLIP_VERTICAL /**< flip vertically */
|
SDL_FLIP_VERTICAL = 0x02, /**< flip vertically */
|
||||||
|
SDL_FLIP_DIAGONAL = 0x03, /**< flip diagonally (both horizontally and vertically) */
|
||||||
} SDL_FlipMode;
|
} SDL_FlipMode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user