filling in bit more info to DDRAW_GLOBAL struct in halinistate.
authorMagnus Olsen <magnus@greatlord.com>
Mon, 24 Oct 2005 16:44:37 +0000 (16:44 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Mon, 24 Oct 2005 16:44:37 +0000 (16:44 +0000)
svn path=/trunk/; revision=18741

reactos/lib/ddraw/main/ddraw.c

index d3dc849..ccdeab9 100644 (file)
@@ -71,12 +71,14 @@ HRESULT WINAPI Main_DirectDraw_SetCooperativeLevel (LPDIRECTDRAW7 iface, HWND hw
        This->hdc = GetDC(hwnd);
        This->cooperative_level = cooplevel;
 
        This->hdc = GetDC(hwnd);
        This->cooperative_level = cooplevel;
 
-       if((ret = Hel_DirectDraw_SetCooperativeLevel (iface)) != DD_OK)
-               return ret;
+       
 
        if((ret = Hal_DirectDraw_SetCooperativeLevel (iface)) != DD_OK)
                return ret;
 
 
        if((ret = Hal_DirectDraw_SetCooperativeLevel (iface)) != DD_OK)
                return ret;
 
+       if((ret = Hel_DirectDraw_SetCooperativeLevel (iface)) != DD_OK)
+               return ret;
+
        return DD_OK;
 }
 
        return DD_OK;
 }
 
@@ -371,7 +373,7 @@ HRESULT WINAPI Main_DirectDraw_WaitForVerticalBlank(LPDIRECTDRAW7 iface, DWORD d
 HRESULT WINAPI Main_DirectDraw_GetAvailableVidMem(LPDIRECTDRAW7 iface, LPDDSCAPS2 ddscaps,
                                   LPDWORD total, LPDWORD free)                                                                                    
 {
 HRESULT WINAPI Main_DirectDraw_GetAvailableVidMem(LPDIRECTDRAW7 iface, LPDDSCAPS2 ddscaps,
                                   LPDWORD total, LPDWORD free)                                                                                    
 {
-  
+     
        DX_STUB;
 }
                                                                                                   
        DX_STUB;
 }