From aade8d697831ee22d9a1f00a9c028a9fd2970243 Mon Sep 17 00:00:00 2001 From: theoddone33 <> Date: Mon, 16 Apr 2001 19:53:02 +0000 Subject: [PATCH] clearwin works --- zsnes/src/linux/sdllink.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zsnes/src/linux/sdllink.c b/zsnes/src/linux/sdllink.c index f4c7f0e2..7ad036b6 100644 --- a/zsnes/src/linux/sdllink.c +++ b/zsnes/src/linux/sdllink.c @@ -1887,12 +1887,13 @@ void clearwin() SurfBufD=(DWORD) &SurfBuf[0]; SURFDW=(DWORD *) &SurfBuf[0]; + + if (SurfBufD == 0) { UnlockSurface(); return; } + switch(BitDepth) { case 16: - // Still crashes - DDOI - STUB_FUNCTION; - /* + //STUB_FUNCTION; __asm__ __volatile__ (" pushw %%es movw %%ds, %%ax @@ -1935,7 +1936,6 @@ void clearwin() jne Blank3 popw %%es " : : : "cc", "memory", "eax", "ebx", "ecx","edi"); -*/ break; } UnlockSurface();