diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-30 18:21:55 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-07 14:23:21 -0800 |
commit | efb3f8730534feb314b41830d679730bcff91cd9 (patch) | |
tree | f76fadaa230ccbe74c086a9ed925cd1f6a7c92fa /src/library_sdl.js | |
parent | c05bd43fcbd42f3549de942c134b20817a03735e (diff) |
TTF_CloseFont
Diffstat (limited to 'src/library_sdl.js')
-rw-r--r-- | src/library_sdl.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js index 62353c59..9314493f 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -1439,6 +1439,10 @@ var LibrarySDL = { return id; }, + TTF_CloseFont: function(font) { + SDL.fonts[font] = null; + }, + TTF_RenderText_Solid: function(font, text, color) { // XXX the font and color are ignored text = Pointer_stringify(text) || ' '; // if given an empty string, still return a valid surface |