Oops, need to compile first, before commit. SDL-1.2
authorPatrice Mandin <patmandin@gmail.com>
Sun, 20 Sep 2009 12:48:51 +0000
branchSDL-1.2
changeset 4200 907624b7a72c
parent 4199 4c92a3d196f1
child 4201 b10a73ebd7fd
Oops, need to compile first, before commit.
src/video/xbios/SDL_xbios.c
--- a/src/video/xbios/SDL_xbios.c	Sun Sep 20 12:46:46 2009 +0000
+++ b/src/video/xbios/SDL_xbios.c	Sun Sep 20 12:48:51 2009 +0000
@@ -620,7 +620,7 @@
 
 	for (i=0;i<2;i++) {
 		if (XBIOS_screensmem[i]!=NULL) {
-			if ((XBIOS_cvdo>>16) == VDO_MILAN)) {
+			if ((XBIOS_cvdo>>16) == VDO_MILAN) {
 				if (i==1) {
 					VsetScreen(-1, -1, MI_MAGIC, CMD_FREEPAGE);
 				}
@@ -717,7 +717,7 @@
 			if (i==0) {
 				XBIOS_screensmem[i] = XBIOS_oldvbase;
 			} else {
-				XBIOS_screensmem[i] = VsetScreen(-1, new_video_mode->number, MI_MAGIC, CMD_ALLOCPAGE);
+				VsetScreen(-1, &XBIOS_screensmem[i], MI_MAGIC, CMD_ALLOCPAGE);
 			}
 		} else {
 			XBIOS_screensmem[i] = Atari_SysMalloc(new_screen_size, MX_STRAM);