[PATCH 6/7] Use surface_is_offscreen instead of directly looking at the swapchain.
Henri Verbeet
hverbeet at gmail.com
Tue Mar 30 15:56:38 CDT 2010
On 30 March 2010 21:19, Roderick Colenbrander <thunderbird2k at gmail.com> wrote:
> @@ -4062,7 +4062,7 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, const
> * Also beware that the front buffer's surface size is screen width x screen height,
> * whereas the real gl drawable size is the size of the window.
> */
> - if (dstSwapchain && (IWineD3DSurface *)This == dstSwapchain->frontBuffer) {
> + if (!surface_is_offscreen((IWineD3DSurface *)This)) {
> RECT windowsize;
> POINT offset = {0,0};
> UINT h;
This looks wrong, the code is checking if the surface is the front
buffer, not if it's onscreen.
More information about the wine-devel
mailing list