Author: greatlrd
Date: Sun Jun 24 15:47:00 2007
New Revision: 27268
URL:
http://svn.reactos.org/svn/reactos?rev=27268&view=rev
Log:
Fixing some value that are not being set
Modified:
trunk/reactos/dll/directx/ddraw/startup.c
Modified: trunk/reactos/dll/directx/ddraw/startup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/startup.…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/startup.c (original)
+++ trunk/reactos/dll/directx/ddraw/startup.c Sun Jun 24 15:47:00 2007
@@ -187,6 +187,7 @@
*/
ddgbl.lpDriverHandle = &ddgbl;
+ ddgbl.hDDVxd = -1;
if (reenable == FALSE)
{
@@ -322,6 +323,16 @@
This->lpLcl->lpGbl->dwFlags = This->lpLcl->lpGbl->dwFlags |
dwFlags | DDRAWI_ATTACHEDTODESKTOP;
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;