Procházet zdrojové kódy

Remove redundant parenthesis in SDL_MUSTLOCK macro

Petar Popovic před 1 rokem
rodič
revize
f1b3523c67
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      include/SDL3/SDL_surface.h

+ 1 - 1
include/SDL3/SDL_surface.h

@@ -73,7 +73,7 @@ typedef Uint32 SDL_SurfaceFlags;
  *
  * \since This macro is available since SDL 3.2.0.
  */
-#define SDL_MUSTLOCK(S) ((((S)->flags & SDL_SURFACE_LOCK_NEEDED)) == SDL_SURFACE_LOCK_NEEDED)
+#define SDL_MUSTLOCK(S) (((S)->flags & SDL_SURFACE_LOCK_NEEDED) == SDL_SURFACE_LOCK_NEEDED)
 
 /**
  * The scaling mode.