DDRAW: Surface locking patch, take 2

Tony Lambregts tony.lambregts at gmail.com
Wed Mar 23 15:17:27 CST 2005

Matthew Mastracci wrote:
> This patch (correctly) fixes the locking problems in SimCity 3000.  We 
> now check to see if the blit src and dest are the same surface and, if 
> so, we make sure to lock the surface only once and, in the case of 
> BltFast, re-adjust the surface pointers.  This patch also makes sure the 
> surfaces are correctly unlocked if a bad rectangle is passed.
> ChangeLog
> Correctly lock and unlock surface for a single-surface Blt() and 
> BltFast() call.
Is there anything wrong with this patch.


It works fine for me (and SimCity). and I was wondering why it was not applied.


Tony Lambregts

More information about the wine-devel mailing list