Prechádzať zdrojové kódy

Be explicit that SDL_FLIP_HORIZONTAL_AND_VERTICAL combines horizontal and vertical flipping

Closes https://github.com/libsdl-org/SDL/pull/13821
Sam Lantinga 2 týždňov pred
rodič
commit
5d9b170a3d
1 zmenil súbory, kde vykonal 4 pridanie a 4 odobranie
  1. 4 4
      include/SDL3/SDL_surface.h

+ 4 - 4
include/SDL3/SDL_surface.h

@@ -96,10 +96,10 @@ typedef enum SDL_ScaleMode
  */
 typedef enum SDL_FlipMode
 {
-    SDL_FLIP_NONE,                      /**< Do not flip */
-    SDL_FLIP_HORIZONTAL,                /**< flip horizontally */
-    SDL_FLIP_VERTICAL,                  /**< flip vertically */
-    SDL_FLIP_HORIZONTAL_AND_VERTICAL,   /**< flip horizontally and vertically (not a diagonal flip) */
+    SDL_FLIP_NONE,                                                                  /**< Do not flip */
+    SDL_FLIP_HORIZONTAL,                                                            /**< flip horizontally */
+    SDL_FLIP_VERTICAL,                                                              /**< flip vertically */
+    SDL_FLIP_HORIZONTAL_AND_VERTICAL = (SDL_FLIP_HORIZONTAL | SDL_FLIP_VERTICAL)    /**< flip horizontally and vertically (not a diagonal flip) */
 } SDL_FlipMode;
 
 #ifndef SDL_INTERNAL