wined3d: Add missing ckey, fx, and pal directdraw caps.
authorOctavian Voicu <octavian.voicu@gmail.com>
Wed, 1 Sep 2010 13:44:11 +0000 (16:44 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 1 Sep 2010 15:07:38 +0000 (17:07 +0200)
dlls/wined3d/directx.c

index 3beb0243c2eeaae1c07e1b17b04f4725ededc7d0..f94d149266755b717e31cde6f4010f0977ee6e85 100644 (file)
@@ -4259,7 +4259,7 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter,
     int ps_selected_mode;
     struct shader_caps shader_caps;
     struct fragment_caps fragment_caps;
-    DWORD ckey_caps, blit_caps, fx_caps;
+    DWORD ckey_caps, blit_caps, fx_caps, pal_caps;
 
     TRACE_(d3d_caps)("(%p)->(Adptr:%d, DevType: %x, pCaps: %p)\n", This, Adapter, DeviceType, pCaps);
 
@@ -4786,6 +4786,8 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter,
                                         WINEDDCAPS_COLORKEY                 |
                                         WINEDDCAPS_COLORKEYHWASSIST         |
                                         WINEDDCAPS_ALIGNBOUNDARYSRC;
+    pal_caps =                          WINEDDPCAPS_8BIT                    |
+                                        WINEDDPCAPS_PRIMARYSURFACE;
 
     /* Fill the ddraw caps structure */
     pCaps->DirectDrawCaps.Caps =        WINEDDCAPS_GDI                      |
@@ -4796,6 +4798,9 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter,
                                         WINEDDCAPS2_PRIMARYGAMMA             |
                                         WINEDDCAPS2_WIDESURFACES             |
                                         WINEDDCAPS2_CANRENDERWINDOWED;
+    pCaps->DirectDrawCaps.CKeyCaps =    ckey_caps;
+    pCaps->DirectDrawCaps.FXCaps =      fx_caps;
+    pCaps->DirectDrawCaps.PalCaps =     pal_caps;
     pCaps->DirectDrawCaps.SVBCaps =     blit_caps;
     pCaps->DirectDrawCaps.SVBCKeyCaps = ckey_caps;
     pCaps->DirectDrawCaps.SVBFXCaps =   fx_caps;