ddraw: Always set fullscreen mode in wined3d.

DDSCL_NORMAL is not set at initialization. Instead of making this a
& DDSCL_NORMAL || == 0 check just set fullscreen mode always. WineD3D
will catch NOP changes anyway.
This commit is contained in:
Stefan Dösinger 2007-05-07 18:32:19 +02:00 committed by Alexandre Julliard
parent 81504d6a2d
commit df891b823a
1 changed files with 3 additions and 7 deletions

View File

@ -465,13 +465,9 @@ IDirectDrawImpl_SetCooperativeLevel(IDirectDraw7 *iface,
}
*/
/* Switch from normal to full screen mode? */
if(This->cooperative_level & DDSCL_NORMAL)
{
This->cooperative_level &= ~DDSCL_NORMAL;
IWineD3DDevice_SetFullscreen(This->wineD3DDevice,
TRUE);
}
This->cooperative_level &= ~DDSCL_NORMAL;
IWineD3DDevice_SetFullscreen(This->wineD3DDevice,
TRUE);
/* Don't override focus windows or private device windows */
if( hwnd &&