src/video/xbios/SDL_xbios.c
changeset 287 e4bd0cf95506
parent 281 c5010ab8ba35
child 297 f6ffac90895c
     1.1 --- a/src/video/xbios/SDL_xbios.c	Tue Feb 26 14:38:53 2002 +0000
     1.2 +++ b/src/video/xbios/SDL_xbios.c	Wed Feb 27 16:15:34 2002 +0000
     1.3 @@ -490,6 +490,7 @@
     1.4  			SDL_SetError("XBIOS_SetVideoMode: Not enough memory for shadow surface");
     1.5  			return (NULL);
     1.6  		}
     1.7 +		memset(XBIOS_shadowscreen, 0, new_screen_size);
     1.8  	}
     1.9  
    1.10  	/* Output buffer needs to be twice in size for the software double-line mode */
    1.11 @@ -506,6 +507,7 @@
    1.12  		SDL_SetError("XBIOS_SetVideoMode: Not enough memory for video buffer");
    1.13  		return (NULL);
    1.14  	}
    1.15 +	memset(XBIOS_screensmem[0], 0, new_screen_size);
    1.16  
    1.17  	XBIOS_screens[0]=(void *) (( (long) XBIOS_screensmem[0]+256) & 0xFFFFFF00UL);
    1.18  
    1.19 @@ -518,6 +520,7 @@
    1.20  			SDL_SetError("XBIOS_SetVideoMode: Not enough memory for double buffer");
    1.21  			return (NULL);
    1.22  		}
    1.23 +		memset(XBIOS_screensmem[1], 0, new_screen_size);
    1.24  
    1.25  		XBIOS_screens[1]=(void *) (( (long) XBIOS_screensmem[1]+256) & 0xFFFFFF00UL);
    1.26  		modeflags |= SDL_DOUBLEBUF;