<br><br><div class="gmail_quote">On Wed, Aug 5, 2009 at 7:51 PM, Stefan Dösinger <span dir="ltr"><<a href="mailto:stefandoesinger@gmx.at" target="_blank">stefandoesinger@gmx.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Am Wednesday 05 August 2009 18:58:42 schrieb Johan Gill:<br>
<div>> On Wed, Jul 29, 2009 at 11:55 PM, Johan Gill <<a href="mailto:johan.gill@gmail.com" target="_blank">johan.gill@gmail.com</a>> wrote:<br>
> > This patch fixes bug 17215. Since the patch was seemingly dropped, I made<br>
> > some test improvements and resubmit it.<br>
> ><br>
> > The tests pass on Windows XP, and of course Wine.<br>
> ><br>
> > Suggested changelog:<br>
> > In DirectDraw fullscreen mode, make sure the fullscreen window is resized<br>
> > when the display mode changes<br>
</div>Sorry, I haven't noticed the patch earlier. Please nadd the component the<br>
patch addresses in topic, for example "ddraw: Resize fullscreen win..." -<br>
that makes them more visible for me when I look for ddraw/d3d related<br>
patches.<br>
<br>
As for the patch itself WineD3D.dll already has similar window resize code. Do<br>
you know why it doesn't resize the window, and if we can make wined3d do this<br>
job?<br>
<br>
<br>
</blockquote></div>There is IWineD3DDeviceImpl_SetupFullscreenWindow, but that one is not exported so it can't be called from ddraw as it is.<br><br>Calling it from within IWineD3DDevice_SetDisplayMode seems troublesome since the hwnd to use is not always available in the WineD3DDevice. See for instance this example from CreateSwapChain:<br>
<br> /* Setup hwnd we are using, plus which display this equates to */<br> object->win_handle = pPresentationParameters->hDeviceWindow;<br> if (!object->win_handle) {<br> object->win_handle = This->createParms.hFocusWindow;<br>
}<br> if(!pPresentationParameters->Windowed && object->win_handle) {<br> IWineD3DDeviceImpl_SetupFullscreenWindow(iface, object->win_handle,<br> pPresentationParameters->BackBufferWidth,<br>
pPresentationParameters->BackBufferHeight);<br><br>/Johan Gill<br><br>