<br><br><div class="gmail_quote">On Wed, Aug 5, 2009 at 7:51 PM, Stefan Dösinger <span dir="ltr">&lt;<a href="mailto:stefandoesinger@gmx.at" target="_blank">stefandoesinger@gmx.at</a>&gt;</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>&gt; On Wed, Jul 29, 2009 at 11:55 PM, Johan Gill &lt;<a href="mailto:johan.gill@gmail.com" target="_blank">johan.gill@gmail.com</a>&gt; wrote:<br>
&gt; &gt; This patch fixes bug 17215. Since the patch was seemingly dropped, I made<br>
&gt; &gt; some test improvements and resubmit it.<br>
&gt; &gt;<br>
&gt; &gt; The tests pass on Windows XP, and of course Wine.<br>
&gt; &gt;<br>
&gt; &gt; Suggested changelog:<br>
&gt; &gt; In DirectDraw fullscreen mode, make sure the fullscreen window is resized<br>
&gt; &gt; when the display mode changes<br>
</div>Sorry, I haven&#39;t noticed the patch earlier. Please nadd the component the<br>
patch addresses in topic, for example &quot;ddraw: Resize fullscreen win...&quot; -<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&#39;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&#39;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-&gt;win_handle = pPresentationParameters-&gt;hDeviceWindow;<br>    if (!object-&gt;win_handle) {<br>        object-&gt;win_handle = This-&gt;createParms.hFocusWindow;<br>
    }<br>    if(!pPresentationParameters-&gt;Windowed &amp;&amp; object-&gt;win_handle) {<br>        IWineD3DDeviceImpl_SetupFullscreenWindow(iface, object-&gt;win_handle,<br>                                                 pPresentationParameters-&gt;BackBufferWidth,<br>
                                                 pPresentationParameters-&gt;BackBufferHeight);<br><br>/Johan Gill<br><br>