mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
fixing a smaller bug extream hard to find,
if we got two or more directdraw object we choice always the lates hDD not the object own hDD use This->lpLcl->lpGbl->hDD = This->lpLcl->hDD; to set the object own hDD before call any dxhal api svn path=/trunk/; revision=27070
This commit is contained in:
@@ -177,6 +177,7 @@ Main_DirectDraw_SetDisplayMode (LPDIRECTDRAW7 iface, DWORD dwWidth, DWORD dwHeig
|
||||
{
|
||||
// Update Interals
|
||||
BOOL ModeChanged;
|
||||
This->lpLcl->lpGbl->hDD = This->lpLcl->hDD;
|
||||
DdReenableDirectDrawObject(This->lpLcl->lpGbl, &ModeChanged);
|
||||
StartDirectDraw((LPDIRECTDRAW)iface, 0, TRUE);
|
||||
}
|
||||
@@ -203,6 +204,8 @@ Main_DirectDraw_RestoreDisplayMode (LPDIRECTDRAW7 iface)
|
||||
|
||||
// Update Interals
|
||||
BOOL ModeChanged;
|
||||
|
||||
This->lpLcl->lpGbl->hDD = This->lpLcl->hDD;
|
||||
DdReenableDirectDrawObject(This->lpLcl->lpGbl, &ModeChanged);
|
||||
StartDirectDraw((LPDIRECTDRAW)iface, 0, TRUE);
|
||||
}
|
||||
|
||||
@@ -202,6 +202,8 @@ Main_DirectDraw_GetAvailableVidMem(LPDIRECTDRAW7 iface, LPDDSCAPS2 ddscaps,
|
||||
memdata.ddRVal = DDERR_INVALIDPARAMS;
|
||||
memcpy(&memdata.DDSCaps, ddscaps, sizeof(DDSCAPS2));
|
||||
|
||||
This->lpLcl->lpGbl->hDD = This->lpLcl->hDD;
|
||||
|
||||
if (This->lpLcl->lpDDCB->HALDDMiscellaneous.GetAvailDriverMemory(&memdata) == DDHAL_DRIVER_NOTHANDLED)
|
||||
{
|
||||
retVal = DDERR_NODIRECTDRAWHW;
|
||||
|
||||
Reference in New Issue
Block a user