[Scummvm-cvs-logs] SF.net SVN: scummvm:[54531] scummvm/trunk/backends/graphics
wjpalenstijn at users.sourceforge.net
wjpalenstijn at users.sourceforge.net
Sun Nov 28 18:12:44 CET 2010
Revision: 54531
http://scummvm.svn.sourceforge.net/scummvm/?rev=54531&view=rev
Author: wjpalenstijn
Date: 2010-11-28 17:12:43 +0000 (Sun, 28 Nov 2010)
Log Message:
-----------
SDL: re-enable unicode after graphics init
Modified Paths:
--------------
scummvm/trunk/backends/graphics/openglsdl/openglsdl-graphics.cpp
scummvm/trunk/backends/graphics/sdl/sdl-graphics.cpp
Modified: scummvm/trunk/backends/graphics/openglsdl/openglsdl-graphics.cpp
===================================================================
--- scummvm/trunk/backends/graphics/openglsdl/openglsdl-graphics.cpp 2010-11-28 16:38:01 UTC (rev 54530)
+++ scummvm/trunk/backends/graphics/openglsdl/openglsdl-graphics.cpp 2010-11-28 17:12:43 UTC (rev 54531)
@@ -44,6 +44,10 @@
error("Could not initialize SDL: %s", SDL_GetError());
}
+ // This is also called in initSDL(), but initializing graphics
+ // may reset it.
+ SDL_EnableUNICODE(1);
+
// Disable OS cursor
SDL_ShowCursor(SDL_DISABLE);
Modified: scummvm/trunk/backends/graphics/sdl/sdl-graphics.cpp
===================================================================
--- scummvm/trunk/backends/graphics/sdl/sdl-graphics.cpp 2010-11-28 16:38:01 UTC (rev 54530)
+++ scummvm/trunk/backends/graphics/sdl/sdl-graphics.cpp 2010-11-28 17:12:43 UTC (rev 54531)
@@ -148,6 +148,10 @@
error("Could not initialize SDL: %s", SDL_GetError());
}
+ // This is also called in initSDL(), but initializing graphics
+ // may reset it.
+ SDL_EnableUNICODE(1);
+
// allocate palette storage
_currentPalette = (SDL_Color *)calloc(sizeof(SDL_Color), 256);
_cursorPalette = (SDL_Color *)calloc(sizeof(SDL_Color), 256);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list