diff options
author | Anthony Pesch <inolen@gmail.com> | 2013-08-14 16:53:55 -0700 |
---|---|---|
committer | Anthony Pesch <inolen@gmail.com> | 2013-08-14 16:53:55 -0700 |
commit | 564842afc85da50ff768736b3a34d7a8a5d973e8 (patch) | |
tree | 53b97c73ce8f8972e5355ad34bffecd646a9cba5 | |
parent | b639ed59378df54fc0513fb00ac97d0678f8ee6e (diff) |
fixed SDL_Surface struct size
-rw-r--r-- | src/library_sdl.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js index 92cfc7e5..71b908c8 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -258,7 +258,7 @@ var LibrarySDL = { makeSurface: function(width, height, flags, usePageCanvas, source, rmask, gmask, bmask, amask) { flags = flags || 0; - var surf = _malloc(14*Runtime.QUANTUM_SIZE); // SDL_Surface has 14 fields of quantum size + var surf = _malloc(15*Runtime.QUANTUM_SIZE); // SDL_Surface has 15 fields of quantum size var buffer = _malloc(width*height*4); // TODO: only allocate when locked the first time var pixelFormat = _malloc(18*Runtime.QUANTUM_SIZE); flags |= 1; // SDL_HWSURFACE - this tells SDL_MUSTLOCK that this needs to be locked |