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();