WineD3D: fix LockedRect regression

Roderick Colenbrander thunderbird2k at gmx.net
Sat Nov 3 07:35:14 CDT 2007


Hi,

During Stefan's LockedRect rewrite some code got moved to the base LockRect. Since the rewrite This->lockedRect isn't set in d3d's LockRect anymore while it needs it (it defaults to 0,0,0,0). This is a regression. Instead of This->lockedRect pass pRect to AddDirtyRect as it can be used instead of This->lockedRect.

This fixes render target locking in various 2D games.

Regards,
Roderick Colenbrander
-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-This-lockedRect-is-these-days-set-in-the-base-versi.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071103/4fc4b6ad/attachment-0001.bin 


More information about the wine-patches mailing list