WineD3D: let flush_to_framebuffer_drawpixels use a valid rect

Stefan Dösinger stefan at
Tue Feb 19 15:12:05 CST 2008

Am Dienstag, 19. Februar 2008 21:26:24 schrieben Sie:
> Hi,
> Originally flush_to_framebuffer_drawpixels was called from UnlockRect, so
> in that case LockedRect was always set. These days it can also be called
> (through LoadLocation) from other places. This patch makes it use the
> LockedRect when the surface is locked else the whole surface is uploaded.
> This fixes rendering issues in Red Alert and other apps.
Wouldn't it be better to make sure that the caller passes the correct 
rectangle to flush_to_framebuffer_* ?

> -            if(dxVersion >= 8) {
> +            if(0 && dxVersion >= 8) {
Is this intentional?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : 

More information about the wine-devel mailing list