diff --git a/src/gui/sdl_mapper.cpp b/src/gui/sdl_mapper.cpp index 958c7a28..8563f15b 100644 --- a/src/gui/sdl_mapper.cpp +++ b/src/gui/sdl_mapper.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2002-2013 The DOSBox Team + * Copyright (C) 2002-2014 The DOSBox Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -2312,6 +2312,8 @@ void MAPPER_Run(bool pressed) { MAPPER_RunInternal(); } +SDL_Surface* SDL_SetVideoMode_Wrap(int width,int height,int bpp,Bit32u flags); + void MAPPER_RunInternal() { int cursor = SDL_ShowCursor(SDL_QUERY); SDL_ShowCursor(SDL_ENABLE); @@ -2323,7 +2325,7 @@ void MAPPER_RunInternal() { /* Be sure that there is no update in progress */ GFX_EndUpdate( 0 ); - mapper.surface=SDL_SetVideoMode(640,480,8,0); + mapper.surface=SDL_SetVideoMode_Wrap(640,480,8,0); if (mapper.surface == NULL) E_Exit("Could not initialize video mode for mapper: %s",SDL_GetError()); /* Set some palette entries */