diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-09-07 13:11:03 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-07 13:11:03 -0700 |
commit | 9841521a35ef37e6fe246acd9a7d296c92d3c6f5 (patch) | |
tree | 8c8c6914ef9144c7956618f27e78347e81dd7edd | |
parent | 490d55b39902338cbb06b42b5f75b4a46d4f26bb (diff) |
some sdl additions
-rw-r--r-- | src/library_sdl.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js index 9231f41b..02585aa6 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -1271,6 +1271,11 @@ var LibrarySDL = { return 1; }, + SDL_SetPalette__deps: ['SDL_SetColors'], + SDL_SetPalette: function(surf, flags, colors, firstColor, nColors) { + return _SDL_SetColors(surf, colors, firstColor, nColors); + }, + SDL_MapRGB: function(fmt, r, g, b) { // Canvas screens are always RGBA. We assume the machine is little-endian. return r&0xff|(g&0xff)<<8|(b&0xff)<<16|0xff000000; @@ -2276,7 +2281,7 @@ var LibrarySDL = { SDL_CondWaitTimeout: function() { throw 'SDL_CondWaitTimeout: TODO' }, SDL_WM_IconifyWindow: function() { throw 'SDL_WM_IconifyWindow TODO' }, - Mix_SetPostMix: function() { throw 'Mix_SetPostMix: TODO' }, + Mix_SetPostMix: function() { Runtime.warnOnce('Mix_SetPostMix: TODO') }, Mix_QuerySpec: function() { throw 'Mix_QuerySpec: TODO' }, Mix_FadeInChannelTimed: function() { throw 'Mix_FadeInChannelTimed' }, Mix_FadeOutChannel: function() { throw 'Mix_FadeOutChannel' }, |