Author: greatlrd
Date: Fri Jun 15 21:02:17 2007
New Revision: 27192
URL:
http://svn.reactos.org/svn/reactos?rev=27192&view=rev
Log:
Fixing right behvoir for setcooperlevel with normal flag set in windows mode
Fixing gpl.dwflag being set right.
Modified:
trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_setcooperativelevel.c
trunk/reactos/dll/directx/ddraw/startup.c
Modified: trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_setcooperativelevel.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/Ddraw/dd…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_setcooperativelevel.c (original)
+++ trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_setcooperativelevel.c Fri Jun 15 21:02:17
2007
@@ -86,7 +86,7 @@
/* FIXME in setup.c set DDRAWI_UMODELOADED | DDRAWI_DISPLAYDRV |
DDRAWI_EMULATIONINITIALIZED | DDRAWI_GDIDRV | DDRAWI_ATTACHEDTODESKTOP */
/* FIXME in setup.c This->lpLcl->lpGbl->dwFlags = */
- This->lpLcl->dwLocalFlags = DDRAWILCL_SETCOOPCALLED |
DDRAWILCL_DIRECTDRAW7 | DDRAWILCL_HOOKEDHWND;
+ This->lpLcl->dwLocalFlags = DDRAWILCL_SETCOOPCALLED |
DDRAWILCL_DIRECTDRAW7 ;
This->lpLcl->hWnd = (ULONG_PTR) hwnd;
This->lpLcl->hFocusWnd = (ULONG_PTR) hwnd;
This->lpLcl->lpGbl->lpExclusiveOwner=NULL;
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 Fri Jun 15 21:02:17 2007
@@ -285,7 +285,7 @@
}
/* Fill some basic info for Surface */
- This->lpLcl->lpGbl->dwFlags = dwFlags | DDRAWI_ATTACHEDTODESKTOP;
+ This->lpLcl->lpGbl->dwFlags = This->lpLcl->lpGbl->dwFlags |
dwFlags | DDRAWI_ATTACHEDTODESKTOP;
This->lpLcl->lpDDCB = This->lpLcl->lpGbl->lpDDCBtmp;
This->lpLcl->hDD = ddgbl.hDD;