Fixed mishandling of _mode_flags that prevented the Simon games from using

the DF_WANT_RECT_OPTIM flag.

svn-id: r9095
This commit is contained in:
Torbjörn Andersson 2003-07-20 18:53:27 +00:00
parent 43ba55e308
commit 594c1f542d
3 changed files with 3 additions and 2 deletions

View File

@ -59,6 +59,7 @@ void OSystem_SDL_Common::init_intern(int gfx_mode, bool full_screen, bool aspect
_mode = gfx_mode;
_full_screen = full_screen;
_adjustAspectRatio = aspect_ratio;
_mode_flags = 0;
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER | SDL_INIT_JOYSTICK) ==-1) {
error("Could not initialize SDL: %s.\n", SDL_GetError());

View File

@ -56,7 +56,7 @@ OSystem_SDL::OSystem_SDL()
void OSystem_SDL::load_gfx_mode() {
_forceFull = true;
_mode_flags = DF_UPDATE_EXPAND_1_PIXEL;
_mode_flags |= DF_UPDATE_EXPAND_1_PIXEL;
_tmpscreen = NULL;
_tmpScreenWidth = (_screenWidth + 3);

View File

@ -94,7 +94,7 @@ void OSystem_SDL_OpenGL::load_gfx_mode() {
Amask = 0;
_forceFull = true;
_mode_flags = DF_UPDATE_EXPAND_1_PIXEL;
_mode_flags |= DF_UPDATE_EXPAND_1_PIXEL;
_tmpscreen = NULL;
_tmpScreenWidth = (_screenWidth + 3);