From d815845c60ee37cb237e2dff02cfbb29af8c1493 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Wed, 18 Jun 2014 18:49:42 +0000 Subject: [PATCH] the mapper needs to use the wrapper as well. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3867 --- src/gui/sdl_mapper.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 */