From 4b55964a26d975be445ee4bfded9cbc47f35bf09 Mon Sep 17 00:00:00 2001 From: Roderick Colenbrander Date: Sun, 24 Sep 2006 22:33:15 +0200 Subject: [PATCH] wined3d: Add the missing gamma cap. --- dlls/wined3d/directx.c | 5 +++-- include/wine/wined3d_types.h | 9 +++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index 793e3c8b38d..3a2bc7e05ee 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -1822,8 +1822,9 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter, *pCaps->AdapterOrdinal = Adapter; *pCaps->Caps = 0; - *pCaps->Caps2 = D3DCAPS2_CANRENDERWINDOWED; - *pCaps->Caps3 = WINED3DDEVCAPS_HWTRANSFORMANDLIGHT; + *pCaps->Caps2 = WINED3DCAPS2_CANRENDERWINDOWED | + WINED3DCAPS2_FULLSCREENGAMMA; + *pCaps->Caps3 = 0; *pCaps->PresentationIntervals = D3DPRESENT_INTERVAL_IMMEDIATE; *pCaps->CursorCaps = 0; diff --git a/include/wine/wined3d_types.h b/include/wine/wined3d_types.h index a82f094be53..ef3f58835a7 100644 --- a/include/wine/wined3d_types.h +++ b/include/wine/wined3d_types.h @@ -1046,6 +1046,15 @@ typedef enum _WINED3DSURFTYPE { SURFACE_XRENDER /* Future dreams: Use XRENDER / EXA / whatever stuff */ } WINED3DSURFTYPE; +#define WINED3DCAPS2_NO2DDURING3DSCENE 0x00000002L +#define WINED3DCAPS2_FULLSCREENGAMMA 0x00020000L +#define WINED3DCAPS2_CANRENDERWINDOWED 0x00080000L +#define WINED3DCAPS2_CANCALIBRATEGAMMA 0x00100000L +#define WINED3DCAPS2_RESERVED 0x02000000L +#define WINED3DCAPS2_CANMANAGERESOURCE 0x10000000L +#define WINED3DCAPS2_DYNAMICTEXTURES 0x20000000L +#define WINED3DCAPS2_CANAUTOGENMIPMAP 0x40000000L + #define WINED3DPRASTERCAPS_DITHER 0x00000001L #define WINED3DPRASTERCAPS_ROP2 0x00000002L #define WINED3DPRASTERCAPS_XOR 0x00000004L