[PATCH 3/5] ddraw: Keep the primary surface mapped at the same address for early ddraw versions.

Stefan Dösinger stefandoesinger at gmx.at
Wed Nov 30 04:11:14 CST 2011

Am Mittwoch, 30. November 2011, 06:01:46 schrieb Henri Verbeet:
> +    if (flags & WINED3D_SURFACE_PIN_SYSMEM)
> +        surface->flags |= SFLAG_PIN_SYSMEM;
The address will still change when GetDC is called. Is this intentional?

> +        /* Some applications assume that the primary surface will always be
> +         * mapped at the same address. Some of those also assume that this
> +         * address is valid even when the surface isn't mapped, and that
> +         * updates done this way will be visible on the screen. The game 
> +         * is such an application. */
I've seen ddraw applications that create systemmem primaries, and we currently 
allow this. What surface caps does Nox use?

Does Nox expect us to magically pick up the new data, or does it map and unmap 
the surface to get the data onto the screen?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20111130/8624cb1d/attachment.pgp>

More information about the wine-devel mailing list