On 6 July 2015 at 23:47, Stefan Dösinger stefan@codeweavers.com wrote:
dlls/wined3d/device.c | 6 +++--- dlls/wined3d/surface.c | 22 +++++++++++++++++----- dlls/wined3d/swapchain.c | 27 +++++++++++++-------------- 3 files changed, 33 insertions(+), 22 deletions(-)
Why would we want that?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Am 2015-07-07 um 16:59 schrieb Henri Verbeet:
Why would we want that?
Currently the WGL -> sysmem copy code assumes window size == surface size. That's OK because it is only hit by GetFrontBufferData. The texture<->WGL blit code assumes the surface size is the screen size. It is only called by ddraw with pre-clipped coordinates, so that's OK in practice. But overall this is a mess.
Things will be a lot more tricky when the ddraw shadow frontbuffer goes away and ddraw blits and GetFrontBufferData run through the same codepaths. Always having the frontbuffer window sized isn't an option for ddraw.