mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
fix Device and Desktop rect values
svn path=/trunk/; revision=31045
This commit is contained in:
parent
fe87541e38
commit
bac46608b2
1 changed files with 10 additions and 10 deletions
|
@ -333,15 +333,15 @@ 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.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;
|
||||
|
@ -504,7 +504,7 @@ StartDirectDrawHal(LPDIRECTDRAW iface, BOOL reenable)
|
|||
{
|
||||
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 @@ StartDirectDrawHal(LPDIRECTDRAW iface, BOOL reenable)
|
|||
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 @@ StartDirectDrawHal(LPDIRECTDRAW iface, BOOL reenable)
|
|||
{
|
||||
DxHeapMemFree(mpFourCC);
|
||||
DxHeapMemFree(ddgbl.lpDDCBtmp);
|
||||
// FIXME Close DX fristcall and second call
|
||||
// FIXME Close DX first and second call
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -572,7 +572,7 @@ StartDirectDrawHal(LPDIRECTDRAW iface, BOOL reenable)
|
|||
DxHeapMemFree(mpFourCC);
|
||||
DxHeapMemFree(mpTextures);
|
||||
DxHeapMemFree(ddgbl.lpDDCBtmp);
|
||||
// FIXME Close DX fristcall and second call
|
||||
// FIXME Close DX first and second call
|
||||
return DD_FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue