Skip to content

Commit

Permalink
From: Patrice Mandin <pmandin@caramail.com>
Browse files Browse the repository at this point in the history
Subject: [SDL] [PATCH] Little cleanups for Atari port
  • Loading branch information
slouken committed Feb 27, 2002
1 parent c23a7b4 commit bb944e1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
4 changes: 0 additions & 4 deletions src/timer/mint/SDL_vbltimer.S
Expand Up @@ -110,10 +110,6 @@ badvector:

/*--- Our vbl ---*/

.text
.even
.ascii "XBRA"
.ascii "_SDL"
_my_vbl:
/* Verify if this is not already running */

Expand Down
5 changes: 2 additions & 3 deletions src/video/ataricommon/SDL_ikbdinterrupt.S
Expand Up @@ -119,8 +119,6 @@ ikbd_finbuffer:

.data
.even
.comm old_ikbd,4*1
.even
.comm ikbd_ierb,4*1
.even
.comm ikbd_imrb,4*1
Expand All @@ -130,7 +128,8 @@ ikbd_finbuffer:
.text
.even
.ascii "XBRA"
.ascii "_SDL"
.ascii "LSDL"
.comm old_ikbd,4*1
ikbd:
moveml d0-d1/a0,sp@-
moveb 0xfffffc02:w,d0
Expand Down
7 changes: 2 additions & 5 deletions src/video/ataricommon/SDL_xbiosmouseinterrupt.S
Expand Up @@ -69,7 +69,8 @@ _SDL_AtariXbiosMouseInstall:
.text
.even
.ascii "XBRA"
.ascii "_SDL"
.ascii "LSDL"
.comm oldvector,4*1
_SDL_AtariXbiosMouseVector:
moveml d0/a1,sp@-

Expand All @@ -96,10 +97,6 @@ _SDL_AtariXbiosMouseVector:
rts

.data

.even
.comm oldvector,4*1

.even
.comm _SDL_AtariXbios_mousex,2*1
.even
Expand Down
3 changes: 3 additions & 0 deletions src/video/xbios/SDL_xbios.c
Expand Up @@ -490,6 +490,7 @@ static SDL_Surface *XBIOS_SetVideoMode(_THIS, SDL_Surface *current,
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 */
Expand All @@ -506,6 +507,7 @@ static SDL_Surface *XBIOS_SetVideoMode(_THIS, SDL_Surface *current,
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);

Expand All @@ -518,6 +520,7 @@ static SDL_Surface *XBIOS_SetVideoMode(_THIS, SDL_Surface *current,
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;
Expand Down

0 comments on commit bb944e1

Please sign in to comment.