From bbf3cc43250096d352ef2ea6e883d9057b10b6d6 Mon Sep 17 00:00:00 2001 From: theoddone33 <> Date: Sat, 14 Apr 2001 01:22:20 +0000 Subject: [PATCH] Some more stuff from relnev, 640x480 enabled --- zsnes/src/linux/sdllink.c | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/zsnes/src/linux/sdllink.c b/zsnes/src/linux/sdllink.c index cb81b75b..61a66fa5 100644 --- a/zsnes/src/linux/sdllink.c +++ b/zsnes/src/linux/sdllink.c @@ -2044,7 +2044,7 @@ void drawscreenwin(void) } // switch (BitDepth) } // if(SurfaceX==256&&SurfaceY==224) - if(SurfaceX==320&&SurfaceY==240) + else if(SurfaceX==320&&SurfaceY==240) { switch(BitDepth) { @@ -2116,7 +2116,7 @@ void drawscreenwin(void) } // switch } // if - if(SurfaceX==512&&SurfaceY==448) + else if(SurfaceX==512&&SurfaceY==448) { switch(BitDepth) { @@ -2136,8 +2136,27 @@ void drawscreenwin(void) break; } // switch } // if + else if (SurfaceX==640 && SurfaceY==480) + { + switch(BitDepth) + { + case 16: + AddEndBytes=Temp1-1024; + NumBytesPerLine=Temp1; + WinVidMemStart=&SurfBuf[16*640*2+64*2]; + copy640x480x16bwin(); + break; + default: + UnlockSurface(); + fprintf(stderr, "Mode only available in 16 bit color.\n"); + cvidmode=2; + initwinvideo(); + sleep(1000); + drawscreenwin(); + break; + } + } - UnlockSurface(); #else UpdateVFrame();