Fixed an erroneous fix on surface locking (woops)

This commit is contained in:
hpsolo
2001-05-31 23:16:37 +00:00
parent a67b21328f
commit 67a34d2f0e

View File

@@ -995,6 +995,9 @@ void drawscreenwin(void)
UpdateVFrame(); UpdateVFrame();
if(curblank!=0) return; if(curblank!=0) return;
Temp1=LockSurface();
if(Temp1==0) { return; }
#ifdef __OPENGL__ #ifdef __OPENGL__
if (UseOpenGL) { if (UseOpenGL) {
@@ -1032,9 +1035,6 @@ void drawscreenwin(void)
} else { } else {
#endif #endif
Temp1=LockSurface();
if(Temp1==0) { return; }
ScreenPtr = vidbuffer; ScreenPtr = vidbuffer;
ScreenPtr += 16*2+32*2+256*2; ScreenPtr += 16*2+32*2+256*2;
SurfBufD = (DWORD) &SurfBuf[0]; SurfBufD = (DWORD) &SurfBuf[0];