ddraw: Adjust the d3d viewport when changing the back buffer.
authorStefan Dösinger <stefan@codeweavers.com>
Sat, 28 Apr 2007 12:50:15 +0000 (14:50 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 7 May 2007 19:42:59 +0000 (21:42 +0200)
commit742260d418293e57afcb05e8c1fdc71ec4d99258
treee082ce92fb25768a666f6e8a73312be6ade7900f
parentc87d5352a5508649071e932186aa1c13c113cf53
ddraw: Adjust the d3d viewport when changing the back buffer.

WineD3D sets up the viewport according to the front buffer, so this
needs to be changed to the values of the render target passed when the
d3d7 device is created and this device turns out not to be the known
front or back buffer.
dlls/ddraw/device.c
dlls/ddraw/direct3d.c