Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e0f604a3
Commit
e0f604a3
authored
Oct 23, 1999
by
Jim Aston
Committed by
Alexandre Julliard
Oct 23, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added another anonymous union using the DUMMYUNIONNAME style.
parent
690a6d4b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
18 deletions
+18
-18
ddraw.c
graphics/ddraw.c
+0
-0
vga.c
graphics/vga.c
+4
-4
ddraw.h
include/ddraw.h
+14
-14
No files found.
graphics/ddraw.c
View file @
e0f604a3
This diff is collapsed.
Click to expand it.
graphics/vga.c
View file @
e0f604a3
...
...
@@ -65,7 +65,7 @@ int VGA_GetMode(unsigned*Height,unsigned*Width,unsigned*Depth)
if
(
!
lpddsurf
)
return
1
;
if
(
Height
)
*
Height
=
sdesc
.
dwHeight
;
if
(
Width
)
*
Width
=
sdesc
.
dwWidth
;
if
(
Depth
)
*
Depth
=
sdesc
.
ddpfPixelFormat
.
x
.
dwRGBBitCount
;
if
(
Depth
)
*
Depth
=
sdesc
.
ddpfPixelFormat
.
u
.
dwRGBBitCount
;
return
0
;
}
...
...
@@ -115,13 +115,13 @@ LPSTR VGA_Lock(unsigned*Pitch,unsigned*Height,unsigned*Width,unsigned*Depth)
if
(
Pitch
)
*
Pitch
=
sdesc
.
lPitch
;
if
(
Height
)
*
Height
=
sdesc
.
dwHeight
;
if
(
Width
)
*
Width
=
sdesc
.
dwWidth
;
if
(
Depth
)
*
Depth
=
sdesc
.
ddpfPixelFormat
.
x
.
dwRGBBitCount
;
return
sdesc
.
y
.
lpSurface
;
if
(
Depth
)
*
Depth
=
sdesc
.
ddpfPixelFormat
.
u
.
dwRGBBitCount
;
return
sdesc
.
u1
.
lpSurface
;
}
void
VGA_Unlock
(
void
)
{
IDirectDrawSurface_Unlock
(
lpddsurf
,
sdesc
.
y
.
lpSurface
);
IDirectDrawSurface_Unlock
(
lpddsurf
,
sdesc
.
u1
.
lpSurface
);
}
/* We are called from SIGALRM, aren't we? We should _NOT_ do synchronization
...
...
include/ddraw.h
View file @
e0f604a3
...
...
@@ -494,25 +494,25 @@ typedef struct _DDPIXELFORMAT {
DWORD
dwYUVBitCount
;
/* C: how many bits per pixel */
DWORD
dwZBufferBitDepth
;
/* C: how many bits for z buffers */
DWORD
dwAlphaBitDepth
;
/* C: how many bits for alpha channels*/
}
x
;
}
DUMMYUNIONNAME
;
union
{
DWORD
dwRBitMask
;
/* 10: mask for red bit*/
DWORD
dwYBitMask
;
/* 10: mask for Y bits*/
}
y
;
}
DUMMYUNIONNAME1
;
union
{
DWORD
dwGBitMask
;
/* 14: mask for green bits*/
DWORD
dwUBitMask
;
/* 14: mask for U bits*/
}
z
;
}
DUMMYUNIONNAME2
;
union
{
DWORD
dwBBitMask
;
/* 18: mask for blue bits*/
DWORD
dwVBitMask
;
/* 18: mask for V bits*/
}
xx
;
}
DUMMYUNIONNAME3
;
union
{
DWORD
dwRGBAlphaBitMask
;
/* 1C: mask for alpha channel */
DWORD
dwYUVAlphaBitMask
;
/* 1C: mask for alpha channel */
DWORD
dwRGBZBitMask
;
/* 1C: mask for Z channel */
DWORD
dwYUVZBitMask
;
/* 1C: mask for Z channel */
}
xy
;
}
DUMMYUNIONNAME4
;
/* 20: next structure */
}
DDPIXELFORMAT
,
*
LPDDPIXELFORMAT
;
...
...
@@ -663,13 +663,13 @@ typedef struct _DDSURFACEDESC
DWORD
dwMipMapCount
;
/* 18:number of mip-map levels requested*/
DWORD
dwZBufferBitDepth
;
/*18: depth of Z buffer requested*/
DWORD
dwRefreshRate
;
/* 18:refresh rate (used when display mode is described)*/
}
x
;
}
DUMMYUNIONNAME
;
DWORD
dwAlphaBitDepth
;
/* 1C:depth of alpha buffer requested*/
DWORD
dwReserved
;
/* 20:reserved*/
union
{
LPVOID
lpSurface
;
/* 24:pointer to the associated surface memory*/
DWORD
dwLinearSize
;
/* 24:Formless late-allocated optimized surface size*/
}
y
;
}
DUMMYUNIONNAME1
;
DDCOLORKEY
ddckCKDestOverlay
;
/* 28: CK for dest overlay use*/
DDCOLORKEY
ddckCKDestBlt
;
/* 30: CK for destination blt use*/
DDCOLORKEY
ddckCKSrcOverlay
;
/* 38: CK for source overlay use*/
...
...
@@ -735,13 +735,13 @@ typedef struct _DDBLTFX
{
DWORD
dwZDestConst
;
/* Constant to use as Z buffer for dest */
LPDIRECTDRAWSURFACE
lpDDSZBufferDest
;
/* Surface to use as Z buffer for dest */
}
x
;
}
DUMMYUNIONNAME
;
DWORD
dwZSrcConstBitDepth
;
/* Bit depth used to specify Z constant for source */
union
{
DWORD
dwZSrcConst
;
/* Constant to use as Z buffer for src */
LPDIRECTDRAWSURFACE
lpDDSZBufferSrc
;
/* Surface to use as Z buffer for src */
}
y
;
}
DUMMYUNIONNAME1
;
DWORD
dwAlphaEdgeBlendBitDepth
;
/* Bit depth used to specify constant for alpha edge blend */
DWORD
dwAlphaEdgeBlend
;
/* Alpha for edge blending */
DWORD
dwReserved
;
...
...
@@ -750,20 +750,20 @@ typedef struct _DDBLTFX
{
DWORD
dwAlphaDestConst
;
/* Constant to use as Alpha Channel */
LPDIRECTDRAWSURFACE
lpDDSAlphaDest
;
/* Surface to use as Alpha Channel */
}
z
;
}
DUMMYUNIONNAME2
;
DWORD
dwAlphaSrcConstBitDepth
;
/* Bit depth used to specify alpha constant for source */
union
{
DWORD
dwAlphaSrcConst
;
/* Constant to use as Alpha Channel */
LPDIRECTDRAWSURFACE
lpDDSAlphaSrc
;
/* Surface to use as Alpha Channel */
}
a
;
}
DUMMYUNIONNAME3
;
union
{
DWORD
dwFillColor
;
/* color in RGB or Palettized */
DWORD
dwFillDepth
;
/* depth value for z-buffer */
DWORD
dwFillPixel
;
/* pixel val for RGBA or RGBZ */
LPDIRECTDRAWSURFACE
lpDDSPattern
;
/* Surface to use as pattern */
}
b
;
}
DUMMYUNIONNAME4
;
DDCOLORKEY
ddckDestColorkey
;
/* DestColorkey override */
DDCOLORKEY
ddckSrcColorkey
;
/* SrcColorkey override */
}
DDBLTFX
,
*
LPDDBLTFX
;
...
...
@@ -799,13 +799,13 @@ typedef struct _DDOVERLAYFX
{
DWORD
dwAlphaDestConst
;
/* Constant to use as alpha channel for dest */
LPDIRECTDRAWSURFACE
lpDDSAlphaDest
;
/* Surface to use as alpha channel for dest */
}
x
;
}
DUMMYUNIONNAME
;
DWORD
dwAlphaSrcConstBitDepth
;
/* Bit depth used to specify alpha constant for source */
union
{
DWORD
dwAlphaSrcConst
;
/* Constant to use as alpha channel for src */
LPDIRECTDRAWSURFACE
lpDDSAlphaSrc
;
/* Surface to use as alpha channel for src */
}
y
;
}
DUMMYUNIONNAME1
;
DDCOLORKEY
dckDestColorkey
;
/* DestColorkey override */
DDCOLORKEY
dckSrcColorkey
;
/* DestColorkey override */
DWORD
dwDDFX
;
/* Overlay FX */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment