1
0
Fork 0

Fix from c2woody for the sdl issues under win32

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2010
This commit is contained in:
Peter Veenstra 2004-10-02 11:15:59 +00:00
parent 55f41cb678
commit fec782775d

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: sdl_mapper.cpp,v 1.7 2004-09-07 08:58:02 qbix79 Exp $ */
/* $Id: sdl_mapper.cpp,v 1.8 2004-10-02 11:15:59 qbix79 Exp $ */
#define OLD_JOYSTICK 1
@ -1224,8 +1224,11 @@ void MAPPER_Run(void) {
mousetoggle=true;
GFX_CaptureMouse();
}
/* Be sure that there is no update in progress */
if (sdl.updating) GFX_EndUpdate();
mapper.surface=SDL_SetVideoMode(640,480,8,0);
/* Set some palette entries */
SDL_SetPalette(mapper.surface, SDL_LOGPAL|SDL_PHYSPAL, map_pal, 0, 4);
/* Go in the event loop */