aboutsummaryrefslogtreecommitdiff
path: root/system/include/SDL/SDL_surface.h
diff options
context:
space:
mode:
Diffstat (limited to 'system/include/SDL/SDL_surface.h')
-rw-r--r--system/include/SDL/SDL_surface.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/system/include/SDL/SDL_surface.h b/system/include/SDL/SDL_surface.h
index 77b58258..ecf89606 100644
--- a/system/include/SDL/SDL_surface.h
+++ b/system/include/SDL/SDL_surface.h
@@ -59,7 +59,9 @@ extern "C" {
/**
* Evaluates to true if the surface needs to be locked before access.
*/
-#define SDL_MUSTLOCK(S) (((S)->flags & SDL_RLEACCEL) != 0)
+#define SDL_MUSTLOCK(S) 1
+ /* XXX Emscripten: we always need to lock.
+ (((S)->flags & SDL_RLEACCEL) != 0) */
/**
* \brief A collection of pixels used in software blitting.