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
ebb85da5
Commit
ebb85da5
authored
Dec 12, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the WINEDDCAPS typedef.
parent
943fcb0f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
60 deletions
+61
-60
ddraw.c
dlls/ddraw/ddraw.c
+18
-17
directx.c
dlls/wined3d/directx.c
+22
-22
wined3d.h
include/wine/wined3d.h
+21
-21
No files found.
dlls/ddraw/ddraw.c
View file @
ebb85da5
...
...
@@ -1197,21 +1197,21 @@ static HRESULT WINAPI ddraw7_GetCaps(IDirectDraw7 *iface, DDCAPS *DriverCaps, DD
return
hr
;
}
caps
.
dwCaps
=
winecaps
.
DirectDrawCaps
.
C
aps
;
caps
.
dwCaps2
=
winecaps
.
DirectDrawCaps
.
C
aps2
;
caps
.
dwCKeyCaps
=
winecaps
.
DirectDrawCaps
.
CKeyC
aps
;
caps
.
dwFXCaps
=
winecaps
.
DirectDrawCaps
.
FXC
aps
;
caps
.
dwPalCaps
=
winecaps
.
DirectDrawCaps
.
PalC
aps
;
caps
.
ddsCaps
.
dwCaps
=
winecaps
.
DirectDrawCaps
.
ddsC
aps
;
caps
.
dwSVBCaps
=
winecaps
.
DirectDrawCaps
.
SVBC
aps
;
caps
.
dwSVBCKeyCaps
=
winecaps
.
DirectDrawCaps
.
SVBCKeyC
aps
;
caps
.
dwSVBFXCaps
=
winecaps
.
DirectDrawCaps
.
SVBFXC
aps
;
caps
.
dwVSBCaps
=
winecaps
.
DirectDrawCaps
.
VSBC
aps
;
caps
.
dwVSBCKeyCaps
=
winecaps
.
DirectDrawCaps
.
VSBCKeyC
aps
;
caps
.
dwVSBFXCaps
=
winecaps
.
DirectDrawCaps
.
VSBFXC
aps
;
caps
.
dwSSBCaps
=
winecaps
.
DirectDrawCaps
.
SSBC
aps
;
caps
.
dwSSBCKeyCaps
=
winecaps
.
DirectDrawCaps
.
SSBCKeyC
aps
;
caps
.
dwSSBFXCaps
=
winecaps
.
DirectDrawCaps
.
SSBFXC
aps
;
caps
.
dwCaps
=
winecaps
.
ddraw_caps
.
c
aps
;
caps
.
dwCaps2
=
winecaps
.
ddraw_caps
.
c
aps2
;
caps
.
dwCKeyCaps
=
winecaps
.
ddraw_caps
.
color_key_c
aps
;
caps
.
dwFXCaps
=
winecaps
.
ddraw_caps
.
fx_c
aps
;
caps
.
dwPalCaps
=
winecaps
.
ddraw_caps
.
pal_c
aps
;
caps
.
ddsCaps
.
dwCaps
=
winecaps
.
ddraw_caps
.
dds_c
aps
;
caps
.
dwSVBCaps
=
winecaps
.
ddraw_caps
.
svb_c
aps
;
caps
.
dwSVBCKeyCaps
=
winecaps
.
ddraw_caps
.
svb_color_key_c
aps
;
caps
.
dwSVBFXCaps
=
winecaps
.
ddraw_caps
.
svb_fx_c
aps
;
caps
.
dwVSBCaps
=
winecaps
.
ddraw_caps
.
vsb_c
aps
;
caps
.
dwVSBCKeyCaps
=
winecaps
.
ddraw_caps
.
vsb_color_key_c
aps
;
caps
.
dwVSBFXCaps
=
winecaps
.
ddraw_caps
.
vsb_fx_c
aps
;
caps
.
dwSSBCaps
=
winecaps
.
ddraw_caps
.
ssb_c
aps
;
caps
.
dwSSBCKeyCaps
=
winecaps
.
ddraw_caps
.
ssb_color_key_c
aps
;
caps
.
dwSSBFXCaps
=
winecaps
.
ddraw_caps
.
ssb_fx_c
aps
;
/* Even if WineD3D supports 3D rendering, remove the cap if ddraw is configured
* not to use it
...
...
@@ -1220,9 +1220,10 @@ static HRESULT WINAPI ddraw7_GetCaps(IDirectDraw7 *iface, DDCAPS *DriverCaps, DD
caps
.
dwCaps
&=
~
DDCAPS_3D
;
caps
.
ddsCaps
.
dwCaps
&=
~
(
DDSCAPS_3DDEVICE
|
DDSCAPS_MIPMAP
|
DDSCAPS_TEXTURE
|
DDSCAPS_ZBUFFER
);
}
if
(
winecaps
.
DirectDrawCaps
.
StrideAlign
!=
0
)
{
if
(
winecaps
.
ddraw_caps
.
stride_align
)
{
caps
.
dwCaps
|=
DDCAPS_ALIGNSTRIDE
;
caps
.
dwAlignStrideAlign
=
winecaps
.
DirectDrawCaps
.
StrideA
lign
;
caps
.
dwAlignStrideAlign
=
winecaps
.
ddraw_caps
.
stride_a
lign
;
}
if
(
DriverCaps
)
...
...
dlls/wined3d/directx.c
View file @
ebb85da5
...
...
@@ -4899,28 +4899,28 @@ HRESULT CDECL wined3d_get_device_caps(const struct wined3d *wined3d, UINT adapte
WINEDDPCAPS_PRIMARYSURFACE
;
/* Fill the ddraw caps structure */
caps
->
DirectDrawCaps
.
Caps
=
WINEDDCAPS_GDI
|
caps
->
ddraw_caps
.
caps
=
WINEDDCAPS_GDI
|
WINEDDCAPS_PALETTE
|
blit_caps
;
caps
->
DirectDrawCaps
.
Caps2
=
WINEDDCAPS2_CERTIFIED
|
WINEDDCAPS2_NOPAGELOCKREQUIRED
|
WINEDDCAPS2_PRIMARYGAMMA
|
WINEDDCAPS2_WIDESURFACES
|
caps
->
ddraw_caps
.
caps2
=
WINEDDCAPS2_CERTIFIED
|
WINEDDCAPS2_NOPAGELOCKREQUIRED
|
WINEDDCAPS2_PRIMARYGAMMA
|
WINEDDCAPS2_WIDESURFACES
|
WINEDDCAPS2_CANRENDERWINDOWED
;
caps
->
DirectDrawCaps
.
CKeyCaps
=
ckey_caps
;
caps
->
DirectDrawCaps
.
FXCaps
=
fx_caps
;
caps
->
DirectDrawCaps
.
PalCaps
=
pal_caps
;
caps
->
DirectDrawCaps
.
SVBCaps
=
blit_caps
;
caps
->
DirectDrawCaps
.
SVBCKeyCaps
=
ckey_caps
;
caps
->
DirectDrawCaps
.
SVBFXCaps
=
fx_caps
;
caps
->
DirectDrawCaps
.
VSBCaps
=
blit_caps
;
caps
->
DirectDrawCaps
.
VSBCKeyCaps
=
ckey_caps
;
caps
->
DirectDrawCaps
.
VSBFXCaps
=
fx_caps
;
caps
->
DirectDrawCaps
.
SSBCaps
=
blit_caps
;
caps
->
DirectDrawCaps
.
SSBCKeyCaps
=
ckey_caps
;
caps
->
DirectDrawCaps
.
SSBFXCaps
=
fx_caps
;
caps
->
DirectDrawCaps
.
ddsCaps
=
WINEDDSCAPS_ALPHA
|
caps
->
ddraw_caps
.
color_key_caps
=
ckey_caps
;
caps
->
ddraw_caps
.
fx_caps
=
fx_caps
;
caps
->
ddraw_caps
.
pal_caps
=
pal_caps
;
caps
->
ddraw_caps
.
svb_caps
=
blit_caps
;
caps
->
ddraw_caps
.
svb_color_key_caps
=
ckey_caps
;
caps
->
ddraw_caps
.
svb_fx_caps
=
fx_caps
;
caps
->
ddraw_caps
.
vsb_caps
=
blit_caps
;
caps
->
ddraw_caps
.
vsb_color_key_caps
=
ckey_caps
;
caps
->
ddraw_caps
.
vsb_fx_caps
=
fx_caps
;
caps
->
ddraw_caps
.
ssb_caps
=
blit_caps
;
caps
->
ddraw_caps
.
ssb_color_key_caps
=
ckey_caps
;
caps
->
ddraw_caps
.
ssb_fx_caps
=
fx_caps
;
caps
->
ddraw_caps
.
dds_caps
=
WINEDDSCAPS_ALPHA
|
WINEDDSCAPS_BACKBUFFER
|
WINEDDSCAPS_FLIP
|
WINEDDSCAPS_FRONTBUFFER
|
...
...
@@ -4930,16 +4930,16 @@ HRESULT CDECL wined3d_get_device_caps(const struct wined3d *wined3d, UINT adapte
WINEDDSCAPS_SYSTEMMEMORY
|
WINEDDSCAPS_VIDEOMEMORY
|
WINEDDSCAPS_VISIBLE
;
caps
->
DirectDrawCaps
.
StrideA
lign
=
DDRAW_PITCH_ALIGNMENT
;
caps
->
ddraw_caps
.
stride_a
lign
=
DDRAW_PITCH_ALIGNMENT
;
/* Set D3D caps if OpenGL is available. */
if
(
adapter
->
opengl
)
{
caps
->
DirectDrawCaps
.
ddsCaps
|=
WINEDDSCAPS_3DDEVICE
|
caps
->
ddraw_caps
.
dds_caps
|=
WINEDDSCAPS_3DDEVICE
|
WINEDDSCAPS_MIPMAP
|
WINEDDSCAPS_TEXTURE
|
WINEDDSCAPS_ZBUFFER
;
caps
->
DirectDrawCaps
.
Caps
|=
WINEDDCAPS_3D
;
caps
->
ddraw_caps
.
caps
|=
WINEDDCAPS_3D
;
}
return
WINED3D_OK
;
...
...
include/wine/wined3d.h
View file @
ebb85da5
...
...
@@ -1757,27 +1757,27 @@ struct wined3d_pixel_shader_caps
INT
instruction_slot_count
;
};
typedef
struct
_WINEDDCAPS
struct
wined3d_ddraw_caps
{
DWORD
C
aps
;
DWORD
C
aps2
;
DWORD
CKeyC
aps
;
DWORD
FXC
aps
;
DWORD
FXAlphaC
aps
;
DWORD
PalC
aps
;
DWORD
SVC
aps
;
DWORD
SVBC
aps
;
DWORD
SVBCKeyC
aps
;
DWORD
SVBFXC
aps
;
DWORD
VSBC
aps
;
DWORD
VSBCKeyC
aps
;
DWORD
VSBFXC
aps
;
DWORD
SSBC
aps
;
DWORD
SSBCKeyC
aps
;
DWORD
SSBFXC
aps
;
DWORD
dds
C
aps
;
DWORD
StrideA
lign
;
}
WINEDDCAPS
;
DWORD
c
aps
;
DWORD
c
aps2
;
DWORD
color_key_c
aps
;
DWORD
fx_c
aps
;
DWORD
fx_alpha_c
aps
;
DWORD
pal_c
aps
;
DWORD
sv_c
aps
;
DWORD
svb_c
aps
;
DWORD
svb_color_key_c
aps
;
DWORD
svb_fx_c
aps
;
DWORD
vsb_c
aps
;
DWORD
vsb_color_key_c
aps
;
DWORD
vsb_fx_c
aps
;
DWORD
ssb_c
aps
;
DWORD
ssb_color_key_c
aps
;
DWORD
ssb_fx_c
aps
;
DWORD
dds
_c
aps
;
DWORD
stride_a
lign
;
};
typedef
struct
_WINED3DCAPS
{
...
...
@@ -1868,7 +1868,7 @@ typedef struct _WINED3DCAPS
DWORD
Reserved2
;
/* Not in the microsoft headers but documented */
DWORD
Reserved3
;
WINEDDCAPS
DirectDrawC
aps
;
struct
wined3d_ddraw_caps
ddraw_c
aps
;
}
WINED3DCAPS
;
struct
wined3d_color_key
...
...
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