aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-03-19 18:52:32 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-03-19 18:52:32 -0700
commitdfeec1f826f22802fa0978def91cf94a278dcab9 (patch)
tree14566906b2dfc89bee3accc3e3a8b21f788f0666
parentf685d9b54b42e522e904b06caebcec312cc7ee71 (diff)
more SDL stuff
-rw-r--r--src/library_sdl.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js
index 62a223a8..cd86fb93 100644
--- a/src/library_sdl.js
+++ b/src/library_sdl.js
@@ -564,7 +564,7 @@ mergeInto(LibraryManager.library, {
// SDL Mixer
- Mix_OpenAudio: function() { return -1 },
+ Mix_OpenAudio: function() { return 0 },
Mix_HookMusicFinished: function(func) {
SDL.hookMusicFinished = func; // TODO: use this
@@ -574,10 +574,20 @@ mergeInto(LibraryManager.library, {
return 0; // TODO
},
+ // SDL TTF
+
+ TTF_Init: function() { return 0 },
+
// Misc
SDL_InitSubSystem: function(flags) { return 0 },
+ SDL_EnableUNICODE: function(on) {
+ var ret = SDL.unicode || 0;
+ SDL.unicode = on;
+ return ret;
+ },
+
SDL_AddTimer: function(interval, callback, param) {
return window.setTimeout(function() {
FUNCTION_TABLE[callback](interval, param);