# HG changeset patch # User Patrice Mandin # Date 1253450931 0 # Node ID 907624b7a72cedcc4536df1de55075df3870db94 # Parent 4c92a3d196f1609d0c504bf061f8a6b7b9743c85 Oops, need to compile first, before commit. diff -r 4c92a3d196f1 -r 907624b7a72c 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);