ChangeSet ID: 21202 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard@winehq.org 2005/11/10 05:05:30
Modified files: include : wingdi.h dlls/x11drv : init.c
Log message: Raphael Junqueira fenix@club-internet.fr Added support for SHADEBLENDCAPS.
Patch: http://cvs.winehq.org/patch.py?id=21202
Old revision New revision Changes Path 1.128 1.129 +10 -1 wine/include/wingdi.h 1.22 1.23 +2 -0 wine/dlls/x11drv/init.c
Index: wine/include/wingdi.h diff -u -p wine/include/wingdi.h:1.128 wine/include/wingdi.h:1.129 --- wine/include/wingdi.h:1.128 10 Nov 2005 11: 5:30 -0000 +++ wine/include/wingdi.h 10 Nov 2005 11: 5:30 -0000 @@ -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 { Index: wine/dlls/x11drv/init.c diff -u -p wine/dlls/x11drv/init.c:1.22 wine/dlls/x11drv/init.c:1.23 --- wine/dlls/x11drv/init.c:1.22 10 Nov 2005 11: 5:30 -0000 +++ wine/dlls/x11drv/init.c 10 Nov 2005 11: 5:30 -0000 @@ -227,6 +227,8 @@ INT X11DRV_GetDeviceCaps( X11DRV_PDEVICE 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;