From b929f3d6733854416c8d2bfcfd16e15c83abc9b7 Mon Sep 17 00:00:00 2001 From: Raphael Junqueira Date: Thu, 10 Nov 2005 11:05:30 +0000 Subject: [PATCH] Added support for SHADEBLENDCAPS. --- dlls/x11drv/init.c | 2 ++ include/wingdi.h | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/dlls/x11drv/init.c b/dlls/x11drv/init.c index 5a3e01a22d2..9524c9b702a 100644 --- a/dlls/x11drv/init.c +++ b/dlls/x11drv/init.c @@ -227,6 +227,8 @@ INT X11DRV_GetDeviceCaps( X11DRV_PDEVICE *physDev, INT cap ) return (RC_BITBLT | RC_BANDING | RC_SCALING | RC_BITMAP64 | RC_DI_BITMAP | RC_DIBTODEV | RC_BIGFONT | RC_STRETCHBLT | RC_STRETCHDIB | RC_DEVBITS | (palette_size ? RC_PALETTE : 0)); + case SHADEBLENDCAPS: + return (SB_GRAD_RECT | SB_GRAD_TRI | SB_CONST_ALPHA | SB_PIXEL_ALPHA); case ASPECTX: case ASPECTY: return 36; diff --git a/include/wingdi.h b/include/wingdi.h index dccba964e77..89b1d07fae9 100644 --- a/include/wingdi.h +++ b/include/wingdi.h @@ -1635,6 +1635,8 @@ typedef struct tagEXTLOGPEN #define DESKTOPVERTRES 117 #define DESKTOPHORZRES 118 #define BTLALIGNMENT 119 +#define SHADEBLENDCAPS 120 +#define COLORMGMTCAPS 121 /* TECHNOLOGY */ #define DT_PLOTTER 0 @@ -1725,7 +1727,6 @@ typedef struct tagEXTLOGPEN #define RC_DEVBITS 0x8000 /* CAPS1 */ - #define C1_TRANSPARENT 0x0001 #define TC_TT_ABLE 0x0002 #define C1_TT_CR_ANY 0x0004 @@ -1740,6 +1741,14 @@ typedef struct tagEXTLOGPEN #define C1_CMYK_ABLE 0x1000 #define C1_SLOW_CARD 0x2000 +/* SHADEBLENDCAPS */ +#define SB_NONE 0x0000 +#define SB_CONST_ALPHA 0x0001 +#define SB_PIXEL_ALPHA 0x0002 +#define SB_PREMULT_ALPHA 0x0004 +#define SB_GRAD_RECT 0x0010 +#define SB_GRAD_TRI 0x0020 + /* Device-independent bitmaps */ typedef struct { -- 2.11.4.GIT