Author: greatlrd
Date: Fri Jun 8 16:57:00 2007
New Revision: 27070
URL:
http://svn.reactos.org/svn/reactos?rev=27070&view=rev
Log:
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
Modified:
trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_displaymode.c
trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c
Modified: trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_displaymode.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/Ddraw/dd…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_displaymode.c (original)
+++ trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_displaymode.c Fri Jun 8 16:57:00 2007
@@ -177,6 +177,7 @@
{
// 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 @@
// Update Interals
BOOL ModeChanged;
+
+ This->lpLcl->lpGbl->hDD = This->lpLcl->hDD;
DdReenableDirectDrawObject(This->lpLcl->lpGbl, &ModeChanged);
StartDirectDraw((LPDIRECTDRAW)iface, 0, TRUE);
}
Modified: trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/Ddraw/dd…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c (original)
+++ trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c Fri Jun 8 16:57:00 2007
@@ -201,6 +201,8 @@
memdata.lpDD = This->lpLcl->lpGbl;
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)
{