From: Patrice Mandin <pmandin@caramail.com>
authorSam Lantinga <slouken@libsdl.org>
Wed, 27 Feb 2002 16:15:34 +0000
changeset 287e4bd0cf95506
parent 286 3ea69fd0b095
child 288 2f5a6062db86
From: Patrice Mandin <pmandin@caramail.com>
Subject: [SDL] [PATCH] Little cleanups for Atari port
src/timer/mint/SDL_vbltimer.S
src/video/ataricommon/SDL_ikbdinterrupt.S
src/video/ataricommon/SDL_xbiosmouseinterrupt.S
src/video/xbios/SDL_xbios.c
     1.1 --- a/src/timer/mint/SDL_vbltimer.S	Tue Feb 26 14:38:53 2002 +0000
     1.2 +++ b/src/timer/mint/SDL_vbltimer.S	Wed Feb 27 16:15:34 2002 +0000
     1.3 @@ -110,10 +110,6 @@
     1.4  
     1.5  /*--- Our vbl ---*/
     1.6  
     1.7 -	.text
     1.8 -	.even
     1.9 -	.ascii "XBRA"
    1.10 -	.ascii "_SDL"
    1.11  _my_vbl:
    1.12  	/* Verify if this is not already running */
    1.13  
     2.1 --- a/src/video/ataricommon/SDL_ikbdinterrupt.S	Tue Feb 26 14:38:53 2002 +0000
     2.2 +++ b/src/video/ataricommon/SDL_ikbdinterrupt.S	Wed Feb 27 16:15:34 2002 +0000
     2.3 @@ -119,8 +119,6 @@
     2.4  
     2.5  	.data
     2.6  	.even
     2.7 -	.comm	old_ikbd,4*1
     2.8 -	.even
     2.9  	.comm	ikbd_ierb,4*1
    2.10  	.even
    2.11  	.comm	ikbd_imrb,4*1
    2.12 @@ -130,7 +128,8 @@
    2.13  	.text
    2.14  	.even
    2.15  	.ascii	"XBRA"
    2.16 -	.ascii	"_SDL"
    2.17 +	.ascii	"LSDL"
    2.18 +	.comm	old_ikbd,4*1
    2.19  ikbd:
    2.20  	moveml	d0-d1/a0,sp@-
    2.21  	moveb	0xfffffc02:w,d0
     3.1 --- a/src/video/ataricommon/SDL_xbiosmouseinterrupt.S	Tue Feb 26 14:38:53 2002 +0000
     3.2 +++ b/src/video/ataricommon/SDL_xbiosmouseinterrupt.S	Wed Feb 27 16:15:34 2002 +0000
     3.3 @@ -69,7 +69,8 @@
     3.4  	.text
     3.5  	.even
     3.6  	.ascii "XBRA"
     3.7 -	.ascii "_SDL"
     3.8 +	.ascii "LSDL"
     3.9 +	.comm	oldvector,4*1
    3.10  _SDL_AtariXbiosMouseVector:
    3.11  	moveml	d0/a1,sp@-
    3.12  
    3.13 @@ -96,10 +97,6 @@
    3.14  	rts
    3.15  
    3.16  	.data
    3.17 -	
    3.18 -	.even
    3.19 -	.comm	oldvector,4*1
    3.20 -
    3.21  	.even
    3.22  	.comm	_SDL_AtariXbios_mousex,2*1
    3.23  	.even
     4.1 --- a/src/video/xbios/SDL_xbios.c	Tue Feb 26 14:38:53 2002 +0000
     4.2 +++ b/src/video/xbios/SDL_xbios.c	Wed Feb 27 16:15:34 2002 +0000
     4.3 @@ -490,6 +490,7 @@
     4.4  			SDL_SetError("XBIOS_SetVideoMode: Not enough memory for shadow surface");
     4.5  			return (NULL);
     4.6  		}
     4.7 +		memset(XBIOS_shadowscreen, 0, new_screen_size);
     4.8  	}
     4.9  
    4.10  	/* Output buffer needs to be twice in size for the software double-line mode */
    4.11 @@ -506,6 +507,7 @@
    4.12  		SDL_SetError("XBIOS_SetVideoMode: Not enough memory for video buffer");
    4.13  		return (NULL);
    4.14  	}
    4.15 +	memset(XBIOS_screensmem[0], 0, new_screen_size);
    4.16  
    4.17  	XBIOS_screens[0]=(void *) (( (long) XBIOS_screensmem[0]+256) & 0xFFFFFF00UL);
    4.18  
    4.19 @@ -518,6 +520,7 @@
    4.20  			SDL_SetError("XBIOS_SetVideoMode: Not enough memory for double buffer");
    4.21  			return (NULL);
    4.22  		}
    4.23 +		memset(XBIOS_screensmem[1], 0, new_screen_size);
    4.24  
    4.25  		XBIOS_screens[1]=(void *) (( (long) XBIOS_screensmem[1]+256) & 0xFFFFFF00UL);
    4.26  		modeflags |= SDL_DOUBLEBUF;