the mapper needs to use the wrapper as well.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3867
This commit is contained in:
parent
56dfdb8f9e
commit
d815845c60
1 changed files with 4 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue