[PATCH] d3d9/tests: Add test for IDirect3DDevice9_Reset with BackBufferWidth/Height = 0.

Sam Edwards cfsworks at gmail.com
Mon Nov 5 22:01:15 CST 2012


wined3d currently fails to resize the swapchain to the size of the 
window when Reset is invoked to request windowed mode with 
BackBufferWidth/BackBufferHeight equal to 0. According to MSDN (and 
indeed the case on Windows), a 0 in either of these fields means to use 
instead the corresponding dimension of the client area of hDeviceWindow 
(or the focus window, if hDeviceWindow is NULL)

Related to bugs 13872, 27050, and anything else that relies on this 
behavior to handle window resizing correctly.

Perhaps a similar test is necessary in other Direct3D versions, but I 
haven't yet looked into it.

Cheers,
Sam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-d3d9-tests-Add-test-for-IDirect3DDevice9_Reset-with-.patch
Type: text/x-patch
Size: 3175 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20121105/8e926727/attachment.bin>


More information about the wine-patches mailing list