Author: cwittich
Date: Thu Dec 6 19:53:50 2007
New Revision: 31045
URL:
http://svn.reactos.org/svn/reactos?rev=31045&view=rev
Log:
fix Device and Desktop rect values
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 Thu Dec 6 19:53:50 2007
@@ -333,15 +333,15 @@
This->lpLcl->lpDDCB = This->lpLcl->lpGbl->lpDDCBtmp;
This->lpLcl->hDD = ddgbl.hDD;
- ddgbl.rectDevice.bottom = 0;
- ddgbl.rectDevice.left= 0;
+ ddgbl.rectDevice.top = 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.rectDevice.bottom = ddgbl.vmiData.dwDisplayHeight;
+
+ ddgbl.rectDesktop.top = 0;
+ ddgbl.rectDesktop.left = 0;
ddgbl.rectDesktop.right = ddgbl.vmiData.dwDisplayWidth;
- ddgbl.rectDesktop.right = ddgbl.vmiData.dwDisplayHeight;
+ ddgbl.rectDesktop.bottom = ddgbl.vmiData.dwDisplayHeight;
ddgbl.dwMonitorFrequency = GetDeviceCaps(GetWindowDC(NULL),VREFRESH);
ddgbl.lpModeInfo->dwWidth = ddgbl.vmiData.dwDisplayWidth;
@@ -504,7 +504,7 @@
{
DxHeapMemFree(This->lpLcl->lpGbl->lpModeInfo);
DxHeapMemFree(ddgbl.lpDDCBtmp);
- // FIXME Close DX fristcall and second call
+ // FIXME Close DX first and second call
return DD_FALSE;
}
@@ -522,7 +522,7 @@
if (mpFourCC == NULL)
{
DxHeapMemFree(ddgbl.lpDDCBtmp);
- // FIXME Close DX fristcall and second call
+ // FIXME Close DX first and second call
return DD_FALSE;
}
}
@@ -544,7 +544,7 @@
{
DxHeapMemFree(mpFourCC);
DxHeapMemFree(ddgbl.lpDDCBtmp);
- // FIXME Close DX fristcall and second call
+ // FIXME Close DX first and second call
}
}
@@ -572,7 +572,7 @@
DxHeapMemFree(mpFourCC);
DxHeapMemFree(mpTextures);
DxHeapMemFree(ddgbl.lpDDCBtmp);
- // FIXME Close DX fristcall and second call
+ // FIXME Close DX first and second call
return DD_FALSE;
}