diff options
author | Richard Quirk <richard.quirk@gmail.com> | 2013-12-27 10:09:14 +0100 |
---|---|---|
committer | Richard Quirk <richard.quirk@gmail.com> | 2013-12-27 10:16:55 +0100 |
commit | 1e3af7db103fa41ebb22b94eb9069f52a03f0dd5 (patch) | |
tree | 8dceb42ceae239fc96c29280c3f65f36c8961854 /src/library_sdl.js | |
parent | 34278eef421e19e0df84195aeaf28724b9fccead (diff) |
Fix missing SDL_LockSurface reference
Prior to this change, when blitting from the screen to a memory buffer
the code could throw a "ReferenceError: _SDL_LockSurface is not defined"
if SDL_LockSurface was not used elsewhere in the C code.
Diffstat (limited to 'src/library_sdl.js')
-rw-r--r-- | src/library_sdl.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js index 2efc1271..1c1e8107 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -1220,6 +1220,7 @@ var LibrarySDL = { if (surf) SDL.freeSurface(surf); }, + SDL_UpperBlit__deps: ['SDL_LockSurface'], SDL_UpperBlit: function(src, srcrect, dst, dstrect) { var srcData = SDL.surfaces[src]; var dstData = SDL.surfaces[dst]; |