Mercurial > sdl-ios-xcode
diff src/video/xbios/SDL_xbios.c @ 287:e4bd0cf95506
From: Patrice Mandin <pmandin@caramail.com>
Subject: [SDL] [PATCH] Little cleanups for Atari port
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 27 Feb 2002 16:15:34 +0000 |
parents | c5010ab8ba35 |
children | f6ffac90895c |
line wrap: on
line diff
--- a/src/video/xbios/SDL_xbios.c Tue Feb 26 14:38:53 2002 +0000 +++ b/src/video/xbios/SDL_xbios.c Wed Feb 27 16:15:34 2002 +0000 @@ -490,6 +490,7 @@ SDL_SetError("XBIOS_SetVideoMode: Not enough memory for shadow surface"); return (NULL); } + memset(XBIOS_shadowscreen, 0, new_screen_size); } /* Output buffer needs to be twice in size for the software double-line mode */ @@ -506,6 +507,7 @@ SDL_SetError("XBIOS_SetVideoMode: Not enough memory for video buffer"); return (NULL); } + memset(XBIOS_screensmem[0], 0, new_screen_size); XBIOS_screens[0]=(void *) (( (long) XBIOS_screensmem[0]+256) & 0xFFFFFF00UL); @@ -518,6 +520,7 @@ SDL_SetError("XBIOS_SetVideoMode: Not enough memory for double buffer"); return (NULL); } + memset(XBIOS_screensmem[1], 0, new_screen_size); XBIOS_screens[1]=(void *) (( (long) XBIOS_screensmem[1]+256) & 0xFFFFFF00UL); modeflags |= SDL_DOUBLEBUF;