Fixing some value that are not being set

svn path=/trunk/; revision=27268
This commit is contained in:
Magnus Olsen 2007-06-24 11:47:00 +00:00
parent f26b273557
commit caa55436f4

View file

@ -187,6 +187,7 @@ StartDirectDraw(LPDIRECTDRAW iface, LPGUID lpGuid, BOOL reenable)
*/
ddgbl.lpDriverHandle = &ddgbl;
ddgbl.hDDVxd = -1;
if (reenable == FALSE)
{
@ -323,6 +324,16 @@ StartDirectDraw(LPDIRECTDRAW iface, LPGUID lpGuid, BOOL reenable)
This->lpLcl->lpDDCB = This->lpLcl->lpGbl->lpDDCBtmp;
This->lpLcl->hDD = ddgbl.hDD;
ddgbl.rectDevice.bottom = 0;
ddgbl.rectDevice.left= 0;
ddgbl.rectDevice.right = ddgbl.vmiData.dwDisplayWidth;
ddgbl.rectDevice.right = ddgbl.vmiData.dwDisplayHeight;
ddgbl.rectDesktop.bottom = 0;
ddgbl.rectDesktop.left= 0;
ddgbl.rectDesktop.right = ddgbl.vmiData.dwDisplayWidth;
ddgbl.rectDesktop.right = ddgbl.vmiData.dwDisplayHeight;
DX_STUB_str("DD_OK\n");
return DD_OK;
}