mirror of https://github.com/libsdl-org/SDL
SDL_MUSTLOCK() should return true if the surface needs locking even if it's currently locked.
There's a bunch of code that assumes this in SDL, and presumably in applications as well.
This commit is contained in:
parent
334962b056
commit
de6595bda6
|
@ -61,7 +61,7 @@ typedef Uint32 SDL_SurfaceFlags;
|
||||||
*
|
*
|
||||||
* \since This macro is available since SDL 3.0.0.
|
* \since This macro is available since SDL 3.0.0.
|
||||||
*/
|
*/
|
||||||
#define SDL_MUSTLOCK(S) (((S)->flags & (SDL_SURFACE_LOCK_NEEDED | SDL_SURFACE_LOCKED)) == SDL_SURFACE_LOCK_NEEDED)
|
#define SDL_MUSTLOCK(S) ((((S)->flags & SDL_SURFACE_LOCK_NEEDED)) == SDL_SURFACE_LOCK_NEEDED)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The scaling mode.
|
* The scaling mode.
|
||||||
|
|
Loading…
Reference in New Issue