diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/library_sdl.js | 5 | ||||
-rw-r--r-- | src/shell.html | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js index 8fd06a43..67b63885 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -1247,6 +1247,11 @@ var LibrarySDL = { return 0; }, + SDL_LowerBlit__deps: ['SDL_UpperBlit'], + SDL_LowerBlit: function(src, srcrect, dst, dstrect) { + return _SDL_UpperBlit(src, srcrect, dst, dstrect); + }, + SDL_FillRect: function(surf, rect, color) { var surfData = SDL.surfaces[surf]; assert(!surfData.locked); // but we could unlock and re-lock if we must.. diff --git a/src/shell.html b/src/shell.html index 53a4fffb..efb9e91d 100644 --- a/src/shell.html +++ b/src/shell.html @@ -50,7 +50,7 @@ //text = text.replace(/>/g, ">"); //text = text.replace('\n', '<br>', 'g'); element.value += text + "\n"; - element.scrollTop = 99999; // focus on bottom + element.scrollTop = element.scrollHeight; // focus on bottom }; })(), printErr: function(text) { |