From: Patrice Mandin <pmandin@caramail.com>
Subject: [SDL] [PATCH] Little cleanups for Atari port
--- a/src/timer/mint/SDL_vbltimer.S Tue Feb 26 14:38:53 2002 +0000
+++ b/src/timer/mint/SDL_vbltimer.S Wed Feb 27 16:15:34 2002 +0000
@@ -110,10 +110,6 @@
/*--- Our vbl ---*/
- .text
- .even
- .ascii "XBRA"
- .ascii "_SDL"
_my_vbl:
/* Verify if this is not already running */
--- a/src/video/ataricommon/SDL_ikbdinterrupt.S Tue Feb 26 14:38:53 2002 +0000
+++ b/src/video/ataricommon/SDL_ikbdinterrupt.S Wed Feb 27 16:15:34 2002 +0000
@@ -119,8 +119,6 @@
.data
.even
- .comm old_ikbd,4*1
- .even
.comm ikbd_ierb,4*1
.even
.comm ikbd_imrb,4*1
@@ -130,7 +128,8 @@
.text
.even
.ascii "XBRA"
- .ascii "_SDL"
+ .ascii "LSDL"
+ .comm old_ikbd,4*1
ikbd:
moveml d0-d1/a0,sp@-
moveb 0xfffffc02:w,d0
--- a/src/video/ataricommon/SDL_xbiosmouseinterrupt.S Tue Feb 26 14:38:53 2002 +0000
+++ b/src/video/ataricommon/SDL_xbiosmouseinterrupt.S Wed Feb 27 16:15:34 2002 +0000
@@ -69,7 +69,8 @@
.text
.even
.ascii "XBRA"
- .ascii "_SDL"
+ .ascii "LSDL"
+ .comm oldvector,4*1
_SDL_AtariXbiosMouseVector:
moveml d0/a1,sp@-
@@ -96,10 +97,6 @@
rts
.data
-
- .even
- .comm oldvector,4*1
-
.even
.comm _SDL_AtariXbios_mousex,2*1
.even
--- 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;