DDRAW: Add surface locking

Matthew Mastracci matt at aclaro.com
Sun Mar 6 10:53:48 CST 2005


This patch fixes Picasa2 - it seems to rely on getting a busy message 
from a second IDirectDrawSurface->Lock() call.  It also adds some lock 
checks to the blit functions for correctness.

Changelog:

  * dlls/ddraw/ddraw_private.h

     Matthew Mastracci <mmastrac at canada.com>
     Add locked flag for DirectDraw surfaces

  * dlls/ddraw/dsurface/main.c

     Matthew Mastracci <mmastrac at canada.com>
     Update locked flag in Lock and Unlock calls, return 
DDERR_SURFACEBUSY if surface already locked

  * dlls/ddraw/dsurface/dib.c

     Matthew Mastracci <mmastrac at canada.com>
     Return DDERR_SURFACEBUSY if surface already locked in blit

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ddraw-surface-lock.diff
Type: text/x-patch
Size: 2918 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050306/5feed682/ddraw-surface-lock.bin


More information about the wine-patches mailing list