mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
xwin: drop DUMMYUNIONNAME*
No need for weird hacks trying create nameless unions (which aren't even done consequently), just give them trivial names and done. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
95b6716b6c
commit
0b436c1ef1
@@ -11,10 +11,6 @@
|
|||||||
#include <wingdi.h>
|
#include <wingdi.h>
|
||||||
#include <objbase.h>
|
#include <objbase.h>
|
||||||
|
|
||||||
#if defined(NONAMELESSUNION) && !defined(DUMMYUNIONNAME1)
|
|
||||||
#define DUMMYUNIONNAME1 u1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define ICOM_CALL_( xfn, p, args) (p)->lpVtbl->xfn args
|
#define ICOM_CALL_( xfn, p, args) (p)->lpVtbl->xfn args
|
||||||
|
|
||||||
#ifdef UNICODE
|
#ifdef UNICODE
|
||||||
@@ -740,33 +736,33 @@ extern "C" {
|
|||||||
DWORD dwAlphaBitDepth; /* C: how many bits for alpha channels */
|
DWORD dwAlphaBitDepth; /* C: how many bits for alpha channels */
|
||||||
DWORD dwLuminanceBitCount;
|
DWORD dwLuminanceBitCount;
|
||||||
DWORD dwBumpBitCount;
|
DWORD dwBumpBitCount;
|
||||||
} DUMMYUNIONNAME1;
|
} u1;
|
||||||
union {
|
union {
|
||||||
DWORD dwRBitMask; /* 10: mask for red bit */
|
DWORD dwRBitMask; /* 10: mask for red bit */
|
||||||
DWORD dwYBitMask; /* 10: mask for Y bits */
|
DWORD dwYBitMask; /* 10: mask for Y bits */
|
||||||
DWORD dwStencilBitDepth;
|
DWORD dwStencilBitDepth;
|
||||||
DWORD dwLuminanceBitMask;
|
DWORD dwLuminanceBitMask;
|
||||||
DWORD dwBumpDuBitMask;
|
DWORD dwBumpDuBitMask;
|
||||||
} DUMMYUNIONNAME2;
|
} u2;
|
||||||
union {
|
union {
|
||||||
DWORD dwGBitMask; /* 14: mask for green bits */
|
DWORD dwGBitMask; /* 14: mask for green bits */
|
||||||
DWORD dwUBitMask; /* 14: mask for U bits */
|
DWORD dwUBitMask; /* 14: mask for U bits */
|
||||||
DWORD dwZBitMask;
|
DWORD dwZBitMask;
|
||||||
DWORD dwBumpDvBitMask;
|
DWORD dwBumpDvBitMask;
|
||||||
} DUMMYUNIONNAME3;
|
} u3;
|
||||||
union {
|
union {
|
||||||
DWORD dwBBitMask; /* 18: mask for blue bits */
|
DWORD dwBBitMask; /* 18: mask for blue bits */
|
||||||
DWORD dwVBitMask; /* 18: mask for V bits */
|
DWORD dwVBitMask; /* 18: mask for V bits */
|
||||||
DWORD dwStencilBitMask;
|
DWORD dwStencilBitMask;
|
||||||
DWORD dwBumpLuminanceBitMask;
|
DWORD dwBumpLuminanceBitMask;
|
||||||
} DUMMYUNIONNAME4;
|
} u4;
|
||||||
union {
|
union {
|
||||||
DWORD dwRGBAlphaBitMask; /* 1C: mask for alpha channel */
|
DWORD dwRGBAlphaBitMask; /* 1C: mask for alpha channel */
|
||||||
DWORD dwYUVAlphaBitMask; /* 1C: mask for alpha channel */
|
DWORD dwYUVAlphaBitMask; /* 1C: mask for alpha channel */
|
||||||
DWORD dwLuminanceAlphaBitMask;
|
DWORD dwLuminanceAlphaBitMask;
|
||||||
DWORD dwRGBZBitMask; /* 1C: mask for Z channel */
|
DWORD dwRGBZBitMask; /* 1C: mask for Z channel */
|
||||||
DWORD dwYUVZBitMask; /* 1C: mask for Z channel */
|
DWORD dwYUVZBitMask; /* 1C: mask for Z channel */
|
||||||
} DUMMYUNIONNAME5;
|
} u5;
|
||||||
/* 20: next structure */
|
/* 20: next structure */
|
||||||
} DDPIXELFORMAT, *LPDDPIXELFORMAT;
|
} DDPIXELFORMAT, *LPDDPIXELFORMAT;
|
||||||
|
|
||||||
@@ -966,13 +962,13 @@ extern "C" {
|
|||||||
union {
|
union {
|
||||||
LONG lPitch; /* 10: distance to start of next line (return value only) */
|
LONG lPitch; /* 10: distance to start of next line (return value only) */
|
||||||
DWORD dwLinearSize;
|
DWORD dwLinearSize;
|
||||||
} DUMMYUNIONNAME1;
|
} u1;
|
||||||
DWORD dwBackBufferCount; /* 14: number of back buffers requested */
|
DWORD dwBackBufferCount; /* 14: number of back buffers requested */
|
||||||
union {
|
union {
|
||||||
DWORD dwMipMapCount; /* 18:number of mip-map levels requested */
|
DWORD dwMipMapCount; /* 18:number of mip-map levels requested */
|
||||||
DWORD dwZBufferBitDepth; /*18: depth of Z buffer requested */
|
DWORD dwZBufferBitDepth; /*18: depth of Z buffer requested */
|
||||||
DWORD dwRefreshRate; /* 18:refresh rate (used when display mode is described) */
|
DWORD dwRefreshRate; /* 18:refresh rate (used when display mode is described) */
|
||||||
} DUMMYUNIONNAME2;
|
} u2;
|
||||||
DWORD dwAlphaBitDepth; /* 1C:depth of alpha buffer requested */
|
DWORD dwAlphaBitDepth; /* 1C:depth of alpha buffer requested */
|
||||||
DWORD dwReserved; /* 20:reserved */
|
DWORD dwReserved; /* 20:reserved */
|
||||||
LPVOID lpSurface; /* 24:pointer to the associated surface memory */
|
LPVOID lpSurface; /* 24:pointer to the associated surface memory */
|
||||||
@@ -992,20 +988,20 @@ extern "C" {
|
|||||||
union {
|
union {
|
||||||
LONG lPitch; /*10: distance to start of next line (return value only) */
|
LONG lPitch; /*10: distance to start of next line (return value only) */
|
||||||
DWORD dwLinearSize; /*10: formless late-allocated optimized surface size */
|
DWORD dwLinearSize; /*10: formless late-allocated optimized surface size */
|
||||||
} DUMMYUNIONNAME1;
|
} u1;
|
||||||
DWORD dwBackBufferCount; /* 14: number of back buffers requested */
|
DWORD dwBackBufferCount; /* 14: number of back buffers requested */
|
||||||
union {
|
union {
|
||||||
DWORD dwMipMapCount; /* 18:number of mip-map levels requested */
|
DWORD dwMipMapCount; /* 18:number of mip-map levels requested */
|
||||||
DWORD dwRefreshRate; /* 18:refresh rate (used when display mode is described) */
|
DWORD dwRefreshRate; /* 18:refresh rate (used when display mode is described) */
|
||||||
DWORD dwSrcVBHandle; /* 18:source used in VB::Optimize */
|
DWORD dwSrcVBHandle; /* 18:source used in VB::Optimize */
|
||||||
} DUMMYUNIONNAME2;
|
} u2;
|
||||||
DWORD dwAlphaBitDepth; /* 1C:depth of alpha buffer requested */
|
DWORD dwAlphaBitDepth; /* 1C:depth of alpha buffer requested */
|
||||||
DWORD dwReserved; /* 20:reserved */
|
DWORD dwReserved; /* 20:reserved */
|
||||||
LPVOID lpSurface; /* 24:pointer to the associated surface memory */
|
LPVOID lpSurface; /* 24:pointer to the associated surface memory */
|
||||||
union {
|
union {
|
||||||
DDCOLORKEY ddckCKDestOverlay; /* 28: CK for dest overlay use */
|
DDCOLORKEY ddckCKDestOverlay; /* 28: CK for dest overlay use */
|
||||||
DWORD dwEmptyFaceColor; /* 28: color for empty cubemap faces */
|
DWORD dwEmptyFaceColor; /* 28: color for empty cubemap faces */
|
||||||
} DUMMYUNIONNAME3;
|
} u3;
|
||||||
DDCOLORKEY ddckCKDestBlt; /* 30: CK for destination blt use */
|
DDCOLORKEY ddckCKDestBlt; /* 30: CK for destination blt use */
|
||||||
DDCOLORKEY ddckCKSrcOverlay; /* 38: CK for source overlay use */
|
DDCOLORKEY ddckCKSrcOverlay; /* 38: CK for source overlay use */
|
||||||
DDCOLORKEY ddckCKSrcBlt; /* 40: CK for source blt use */
|
DDCOLORKEY ddckCKSrcBlt; /* 40: CK for source blt use */
|
||||||
@@ -1013,7 +1009,7 @@ extern "C" {
|
|||||||
union {
|
union {
|
||||||
DDPIXELFORMAT ddpfPixelFormat; /* 48: pixel format description of the surface */
|
DDPIXELFORMAT ddpfPixelFormat; /* 48: pixel format description of the surface */
|
||||||
DWORD dwFVF; /* 48: vertex format description of vertex buffers */
|
DWORD dwFVF; /* 48: vertex format description of vertex buffers */
|
||||||
} DUMMYUNIONNAME4;
|
} u4;
|
||||||
DDSCAPS2 ddsCaps; /* 68: DDraw surface caps */
|
DDSCAPS2 ddsCaps; /* 68: DDraw surface caps */
|
||||||
DWORD dwTextureStage; /* 78: stage in multitexture cascade */
|
DWORD dwTextureStage; /* 78: stage in multitexture cascade */
|
||||||
} DDSURFACEDESC2, *LPDDSURFACEDESC2;
|
} DDSURFACEDESC2, *LPDDSURFACEDESC2;
|
||||||
@@ -1098,12 +1094,12 @@ extern "C" {
|
|||||||
union {
|
union {
|
||||||
DWORD dwZDestConst; /* Constant to use as Z buffer for dest */
|
DWORD dwZDestConst; /* Constant to use as Z buffer for dest */
|
||||||
LPDIRECTDRAWSURFACE lpDDSZBufferDest; /* Surface to use as Z buffer for dest */
|
LPDIRECTDRAWSURFACE lpDDSZBufferDest; /* Surface to use as Z buffer for dest */
|
||||||
} DUMMYUNIONNAME1;
|
} u1;
|
||||||
DWORD dwZSrcConstBitDepth; /* Bit depth used to specify Z constant for source */
|
DWORD dwZSrcConstBitDepth; /* Bit depth used to specify Z constant for source */
|
||||||
union {
|
union {
|
||||||
DWORD dwZSrcConst; /* Constant to use as Z buffer for src */
|
DWORD dwZSrcConst; /* Constant to use as Z buffer for src */
|
||||||
LPDIRECTDRAWSURFACE lpDDSZBufferSrc; /* Surface to use as Z buffer for src */
|
LPDIRECTDRAWSURFACE lpDDSZBufferSrc; /* Surface to use as Z buffer for src */
|
||||||
} DUMMYUNIONNAME2;
|
} u2;
|
||||||
DWORD dwAlphaEdgeBlendBitDepth; /* Bit depth used to specify constant for alpha edge blend */
|
DWORD dwAlphaEdgeBlendBitDepth; /* Bit depth used to specify constant for alpha edge blend */
|
||||||
DWORD dwAlphaEdgeBlend; /* Alpha for edge blending */
|
DWORD dwAlphaEdgeBlend; /* Alpha for edge blending */
|
||||||
DWORD dwReserved;
|
DWORD dwReserved;
|
||||||
@@ -1111,18 +1107,18 @@ extern "C" {
|
|||||||
union {
|
union {
|
||||||
DWORD dwAlphaDestConst; /* Constant to use as Alpha Channel */
|
DWORD dwAlphaDestConst; /* Constant to use as Alpha Channel */
|
||||||
LPDIRECTDRAWSURFACE lpDDSAlphaDest; /* Surface to use as Alpha Channel */
|
LPDIRECTDRAWSURFACE lpDDSAlphaDest; /* Surface to use as Alpha Channel */
|
||||||
} DUMMYUNIONNAME3;
|
} u3;
|
||||||
DWORD dwAlphaSrcConstBitDepth; /* Bit depth used to specify alpha constant for source */
|
DWORD dwAlphaSrcConstBitDepth; /* Bit depth used to specify alpha constant for source */
|
||||||
union {
|
union {
|
||||||
DWORD dwAlphaSrcConst; /* Constant to use as Alpha Channel */
|
DWORD dwAlphaSrcConst; /* Constant to use as Alpha Channel */
|
||||||
LPDIRECTDRAWSURFACE lpDDSAlphaSrc; /* Surface to use as Alpha Channel */
|
LPDIRECTDRAWSURFACE lpDDSAlphaSrc; /* Surface to use as Alpha Channel */
|
||||||
} DUMMYUNIONNAME4;
|
} u4;
|
||||||
union {
|
union {
|
||||||
DWORD dwFillColor; /* color in RGB or Palettized */
|
DWORD dwFillColor; /* color in RGB or Palettized */
|
||||||
DWORD dwFillDepth; /* depth value for z-buffer */
|
DWORD dwFillDepth; /* depth value for z-buffer */
|
||||||
DWORD dwFillPixel; /* pixel val for RGBA or RGBZ */
|
DWORD dwFillPixel; /* pixel val for RGBA or RGBZ */
|
||||||
LPDIRECTDRAWSURFACE lpDDSPattern; /* Surface to use as pattern */
|
LPDIRECTDRAWSURFACE lpDDSPattern; /* Surface to use as pattern */
|
||||||
} DUMMYUNIONNAME5;
|
} u5;
|
||||||
DDCOLORKEY ddckDestColorkey; /* DestColorkey override */
|
DDCOLORKEY ddckDestColorkey; /* DestColorkey override */
|
||||||
DDCOLORKEY ddckSrcColorkey; /* SrcColorkey override */
|
DDCOLORKEY ddckSrcColorkey; /* SrcColorkey override */
|
||||||
} DDBLTFX, *LPDDBLTFX;
|
} DDBLTFX, *LPDDBLTFX;
|
||||||
@@ -1156,12 +1152,12 @@ extern "C" {
|
|||||||
union {
|
union {
|
||||||
DWORD dwAlphaDestConst; /* Constant to use as alpha channel for dest */
|
DWORD dwAlphaDestConst; /* Constant to use as alpha channel for dest */
|
||||||
LPDIRECTDRAWSURFACE lpDDSAlphaDest; /* Surface to use as alpha channel for dest */
|
LPDIRECTDRAWSURFACE lpDDSAlphaDest; /* Surface to use as alpha channel for dest */
|
||||||
} DUMMYUNIONNAME1;
|
} u1;
|
||||||
DWORD dwAlphaSrcConstBitDepth; /* Bit depth used to specify alpha constant for source */
|
DWORD dwAlphaSrcConstBitDepth; /* Bit depth used to specify alpha constant for source */
|
||||||
union {
|
union {
|
||||||
DWORD dwAlphaSrcConst; /* Constant to use as alpha channel for src */
|
DWORD dwAlphaSrcConst; /* Constant to use as alpha channel for src */
|
||||||
LPDIRECTDRAWSURFACE lpDDSAlphaSrc; /* Surface to use as alpha channel for src */
|
LPDIRECTDRAWSURFACE lpDDSAlphaSrc; /* Surface to use as alpha channel for src */
|
||||||
} DUMMYUNIONNAME2;
|
} u2;
|
||||||
DDCOLORKEY dckDestColorkey; /* DestColorkey override */
|
DDCOLORKEY dckDestColorkey; /* DestColorkey override */
|
||||||
DDCOLORKEY dckSrcColorkey; /* DestColorkey override */
|
DDCOLORKEY dckSrcColorkey; /* DestColorkey override */
|
||||||
DWORD dwDDFX; /* Overlay FX */
|
DWORD dwDDFX; /* Overlay FX */
|
||||||
|
|||||||
Reference in New Issue
Block a user