Fixing smaller bugs in Main_DirectDraw_GetAvailableVidMem, it is still buggi
authorMagnus Olsen <magnus@greatlord.com>
Fri, 8 Jun 2007 19:25:39 +0000 (19:25 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Fri, 8 Jun 2007 19:25:39 +0000 (19:25 +0000)
svn path=/trunk/; revision=27078

reactos/dll/directx/ddraw/Ddraw/ddraw_main.c

index 506bc9d..9715cdb 100644 (file)
@@ -205,15 +205,20 @@ Main_DirectDraw_GetAvailableVidMem(LPDIRECTDRAW7 iface, LPDDSCAPS2 ddscaps,
                 _SEH_LEAVE;
             }
 
-            /* fixme 
-            if ( ddscaps->dwCaps2 & (DDSCAPS_BACKBUFFER  | DDSCAPS_COMPLEX   | DDSCAPS_FLIP | 
-                                    DDSCAPS_FRONTBUFFER | DDSCAPS_PALETTE   | DDSCAPS_SYSTEMMEMORY |
-                                    DDSCAPS_VISIBLE     | DDSCAPS_WRITEONLY | DDSCAPS_OWNDC))
+            
+            /*   ddscaps->dwCaps2 & 0x01
+                this flag is outdate and are 
+                set to 0 in ms dxsdk  the name of 
+                this flag is DDSCAPS2_HARDWAREDEINTERLACE
+            */
+
+            if ( ddscaps->dwCaps2 & 0x01)
             {
-                retVal = DDERR_INVALIDPARAMS;
+                retVal = DDERR_INVALIDCAPS;
                 _SEH_LEAVE;
             }
 
+            /* fixme 
             if ( ddscaps->dwCaps3 & (DDSCAPS_BACKBUFFER  | DDSCAPS_COMPLEX   | DDSCAPS_FLIP | 
                                     DDSCAPS_FRONTBUFFER | DDSCAPS_PALETTE   | DDSCAPS_SYSTEMMEMORY |
                                     DDSCAPS_VISIBLE     | DDSCAPS_WRITEONLY | DDSCAPS_OWNDC))