*/
#include "rosdraw.h"
-#include "ddrawgdi.h"
DDRAWI_DIRECTDRAW_GBL ddgbl;
DDRAWI_DDRAWSURFACE_GBL ddSurfGbl;
}
}
- /* Windows handler are by set of SetCooperLevel
- * so do not set it
+ /* Windows handler are by set of SetCooperLevel
+ * so do not set it
*/
if (reenable == FALSE)
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.rectDevice.bottom = ddgbl.vmiData.dwDisplayHeight;
- ddgbl.rectDesktop.bottom = 0;
- ddgbl.rectDesktop.left= 0;
+ 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;
{
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;
}
if (mHALInfo.ddCaps.dwNumFourCCCodes > 0 )
{
-
+
DxHeapMemAlloc(mpFourCC, sizeof(DWORD) * (mHALInfo.ddCaps.dwNumFourCCCodes + 2));
if (mpFourCC == NULL)
{
DxHeapMemFree(ddgbl.lpDDCBtmp);
- // FIXME Close DX fristcall and second call
+ // FIXME Close DX first and second call
return DD_FALSE;
}
}
{
DxHeapMemFree(mpFourCC);
DxHeapMemFree(ddgbl.lpDDCBtmp);
- // FIXME Close DX fristcall and second call
+ // FIXME Close DX first and second call
}
}
DxHeapMemFree(mpFourCC);
DxHeapMemFree(mpTextures);
DxHeapMemFree(ddgbl.lpDDCBtmp);
- // FIXME Close DX fristcall and second call
+ // FIXME Close DX first and second call
return DD_FALSE;
}
memcpy(&ddgbl.vmiData, &mHALInfo.vmiData,sizeof(VIDMEMINFO));
-
+
memcpy(&ddgbl.ddCaps, &mHALInfo.ddCaps,sizeof(DDCORECAPS));
/* FIXME D3D setup mD3dCallbacks and mD3dDriverData */
-
+
if (mHALInfo.dwFlags & DDHALINFO_GETDRIVERINFOSET)
RtlZeroMemory(&DdGetDriverInfo, sizeof(DDHAL_GETDRIVERINFODATA));
DdGetDriverInfo.dwSize = sizeof (DDHAL_GETDRIVERINFODATA);
DdGetDriverInfo.guidInfo = GUID_Miscellaneous2Callbacks;
-
- /* FIXME
+
+ /* FIXME
DdGetDriverInfo.lpvData = (PVOID)&ddgbl.lpDDCBtmp->HALDDMiscellaneous;
DdGetDriverInfo.dwExpectedSize = sizeof (DDHAL_DDMISCELLANEOUS2CALLBACKS);
// FIXME Close DX fristcall and second call
return DD_FALSE;
}
- DD_MISCELLANEOUS2CALLBACKS
+ DD_MISCELLANEOUS2CALLBACKS
{
DWORD dwSize;
DWORD dwFlags;