clearwin works

This commit is contained in:
theoddone33
2001-04-16 19:53:02 +00:00
parent 778bca2b3f
commit aade8d6978

View File

@@ -1887,12 +1887,13 @@ void clearwin()
SurfBufD=(DWORD) &SurfBuf[0]; SurfBufD=(DWORD) &SurfBuf[0];
SURFDW=(DWORD *) &SurfBuf[0]; SURFDW=(DWORD *) &SurfBuf[0];
if (SurfBufD == 0) { UnlockSurface(); return; }
switch(BitDepth) switch(BitDepth)
{ {
case 16: case 16:
// Still crashes - DDOI //STUB_FUNCTION;
STUB_FUNCTION;
/*
__asm__ __volatile__ (" __asm__ __volatile__ ("
pushw %%es pushw %%es
movw %%ds, %%ax movw %%ds, %%ax
@@ -1935,7 +1936,6 @@ void clearwin()
jne Blank3 jne Blank3
popw %%es popw %%es
" : : : "cc", "memory", "eax", "ebx", "ecx","edi"); " : : : "cc", "memory", "eax", "ebx", "ecx","edi");
*/
break; break;
} }
UnlockSurface(); UnlockSurface();