DGA bugfix

Ove Kaaven ovehk at ping.uio.no
Wed Apr 18 08:11:50 CDT 2001


After the ddraw HAL stuff was committed to Wine, one Wine user on #WineHQ
did indeed find a problem ("err:ddraw:unexpected error creating
DirectDrawSurface DIB section" when running in DGA mode), here's an
(extended) one-liner to fix it...

Log:
Ove Kaaven <ovek at transgaming.com>
Fix DGA so it works properly again.

Index: dlls/ddraw/dsurface/hal.c
===================================================================
RCS file: /cvsroot/winex/wine/dlls/ddraw/dsurface/hal.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- dlls/ddraw/dsurface/hal.c	2001/04/15 18:44:15	1.15
+++ dlls/ddraw/dsurface/hal.c	2001/04/18 13:03:25	1.16
@@ -51,6 +51,7 @@
 	    ddpriv->hal.next_vofs += This->surface_desc.dwHeight;
 
 	    This->global.fpVidMem = (FLATPTR)priv->hal.fb_addr;
+	    This->global.u4.lPitch = priv->hal.fb_pitch;
 	}
 	This->surface_desc.lpSurface = (LPVOID)This->global.fpVidMem;
 	This->surface_desc.dwFlags |= DDSD_LPSURFACE;
@@ -290,6 +291,7 @@
 	ret = DIB_DirectDrawSurface_flip_data(front, back, dwFlags);
     }
 
+    TRACE("(%p,%p)\n",front,back);
     data.lpDD = dd_gbl;
     data.lpSurfCurr = &front->local;
     data.lpSurfTarg = &back->local;





More information about the wine-patches mailing list