diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-04-13 17:20:47 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-04-13 17:20:47 -0700 |
commit | 984f3454a9b2a51213aef192cb8aa658d3373e66 (patch) | |
tree | 8e502d2ff664886db42bb851de95779b3a9b4e04 /src | |
parent | 73653a84c4fed18a489ee101fb0a9eea523d6c84 (diff) |
return 0 in SDL_LockSurface
Diffstat (limited to 'src')
-rw-r--r-- | src/library_sdl.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js index 8f7f4c08..d35e179b 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -474,7 +474,7 @@ var LibrarySDL = { var surfData = SDL.surfaces[surf]; surfData.locked++; - if (surfData.locked > 1) return; + if (surfData.locked > 1) return 0; if (!surfData.image) { surfData.image = surfData.ctx.getImageData(0, 0, surfData.width, surfData.height); @@ -499,6 +499,8 @@ var LibrarySDL = { // So we have fields all of the same size, and 5 of them before us. // TODO: Use macros like in library.js {{{ makeSetValue('surf', '5*Runtime.QUANTUM_SIZE', 'surfData.buffer', 'void*') }}}; + + return 0; }, // Copy data from the C++-accessible storage to the canvas backing |