From: Patrice Mandin <pmandin@caramail.com>

Subject: [SDL] [PATCH] Little cleanups for Atari port

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40288
This commit is contained in:
Sam Lantinga 2002-02-27 16:15:34 +00:00
parent 36c39dd53e
commit 89c31763c4
4 changed files with 7 additions and 12 deletions

View file

@ -110,10 +110,6 @@ badvector:
/*--- Our vbl ---*/ /*--- Our vbl ---*/
.text
.even
.ascii "XBRA"
.ascii "_SDL"
_my_vbl: _my_vbl:
/* Verify if this is not already running */ /* Verify if this is not already running */

View file

@ -119,8 +119,6 @@ ikbd_finbuffer:
.data .data
.even .even
.comm old_ikbd,4*1
.even
.comm ikbd_ierb,4*1 .comm ikbd_ierb,4*1
.even .even
.comm ikbd_imrb,4*1 .comm ikbd_imrb,4*1
@ -130,7 +128,8 @@ ikbd_finbuffer:
.text .text
.even .even
.ascii "XBRA" .ascii "XBRA"
.ascii "_SDL" .ascii "LSDL"
.comm old_ikbd,4*1
ikbd: ikbd:
moveml d0-d1/a0,sp@- moveml d0-d1/a0,sp@-
moveb 0xfffffc02:w,d0 moveb 0xfffffc02:w,d0

View file

@ -69,7 +69,8 @@ _SDL_AtariXbiosMouseInstall:
.text .text
.even .even
.ascii "XBRA" .ascii "XBRA"
.ascii "_SDL" .ascii "LSDL"
.comm oldvector,4*1
_SDL_AtariXbiosMouseVector: _SDL_AtariXbiosMouseVector:
moveml d0/a1,sp@- moveml d0/a1,sp@-
@ -96,10 +97,6 @@ _SDL_AtariXbiosMouseVector:
rts rts
.data .data
.even
.comm oldvector,4*1
.even .even
.comm _SDL_AtariXbios_mousex,2*1 .comm _SDL_AtariXbios_mousex,2*1
.even .even

View file

@ -490,6 +490,7 @@ static SDL_Surface *XBIOS_SetVideoMode(_THIS, SDL_Surface *current,
SDL_SetError("XBIOS_SetVideoMode: Not enough memory for shadow surface"); SDL_SetError("XBIOS_SetVideoMode: Not enough memory for shadow surface");
return (NULL); return (NULL);
} }
memset(XBIOS_shadowscreen, 0, new_screen_size);
} }
/* Output buffer needs to be twice in size for the software double-line mode */ /* Output buffer needs to be twice in size for the software double-line mode */
@ -506,6 +507,7 @@ static SDL_Surface *XBIOS_SetVideoMode(_THIS, SDL_Surface *current,
SDL_SetError("XBIOS_SetVideoMode: Not enough memory for video buffer"); SDL_SetError("XBIOS_SetVideoMode: Not enough memory for video buffer");
return (NULL); return (NULL);
} }
memset(XBIOS_screensmem[0], 0, new_screen_size);
XBIOS_screens[0]=(void *) (( (long) XBIOS_screensmem[0]+256) & 0xFFFFFF00UL); XBIOS_screens[0]=(void *) (( (long) XBIOS_screensmem[0]+256) & 0xFFFFFF00UL);
@ -518,6 +520,7 @@ static SDL_Surface *XBIOS_SetVideoMode(_THIS, SDL_Surface *current,
SDL_SetError("XBIOS_SetVideoMode: Not enough memory for double buffer"); SDL_SetError("XBIOS_SetVideoMode: Not enough memory for double buffer");
return (NULL); return (NULL);
} }
memset(XBIOS_screensmem[1], 0, new_screen_size);
XBIOS_screens[1]=(void *) (( (long) XBIOS_screensmem[1]+256) & 0xFFFFFF00UL); XBIOS_screens[1]=(void *) (( (long) XBIOS_screensmem[1]+256) & 0xFFFFFF00UL);
modeflags |= SDL_DOUBLEBUF; modeflags |= SDL_DOUBLEBUF;