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
99000092
Commit
99000092
authored
Jul 12, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxdiagn: Use nameless unions/structs.
parent
43ed6c6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
provider.c
dlls/dxdiagn/provider.c
+5
-7
No files found.
dlls/dxdiagn/provider.c
View file @
99000092
...
@@ -22,8 +22,6 @@
...
@@ -22,8 +22,6 @@
#define COBJMACROS
#define COBJMACROS
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "dxdiag_private.h"
#include "dxdiag_private.h"
#include "winver.h"
#include "winver.h"
#include "objidl.h"
#include "objidl.h"
...
@@ -792,7 +790,7 @@ static BOOL get_texture_memory(GUID *adapter, DWORD *available_mem)
...
@@ -792,7 +790,7 @@ static BOOL get_texture_memory(GUID *adapter, DWORD *available_mem)
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
{
{
dd_caps
.
dwCaps
=
DDSCAPS_LOCALVIDMEM
|
DDSCAPS_VIDEOMEMORY
;
dd_caps
.
dwCaps
=
DDSCAPS_LOCALVIDMEM
|
DDSCAPS_VIDEOMEMORY
;
dd_caps
.
dwCaps2
=
dd_caps
.
dwCaps3
=
dd_caps
.
u1
.
dwCaps4
=
0
;
dd_caps
.
dwCaps2
=
dd_caps
.
dwCaps3
=
dd_caps
.
dwCaps4
=
0
;
hr
=
IDirectDraw7_GetAvailableVidMem
(
pDirectDraw
,
&
dd_caps
,
available_mem
,
NULL
);
hr
=
IDirectDraw7_GetAvailableVidMem
(
pDirectDraw
,
&
dd_caps
,
available_mem
,
NULL
);
IDirectDraw7_Release
(
pDirectDraw
);
IDirectDraw7_Release
(
pDirectDraw
);
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
...
@@ -887,8 +885,8 @@ static HRESULT fill_display_information_d3d(IDxDiagContainerImpl_Container *node
...
@@ -887,8 +885,8 @@ static HRESULT fill_display_information_d3d(IDxDiagContainerImpl_Container *node
goto
cleanup
;
goto
cleanup
;
swprintf
(
buffer
,
ARRAY_SIZE
(
buffer
),
L"%u.%u.%04u.%04u"
,
swprintf
(
buffer
,
ARRAY_SIZE
(
buffer
),
L"%u.%u.%04u.%04u"
,
HIWORD
(
adapter_info
.
DriverVersion
.
u
.
HighPart
),
LOWORD
(
adapter_info
.
DriverVersion
.
u
.
HighPart
),
HIWORD
(
adapter_info
.
DriverVersion
.
HighPart
),
LOWORD
(
adapter_info
.
DriverVersion
.
HighPart
),
HIWORD
(
adapter_info
.
DriverVersion
.
u
.
LowPart
),
LOWORD
(
adapter_info
.
DriverVersion
.
u
.
LowPart
));
HIWORD
(
adapter_info
.
DriverVersion
.
LowPart
),
LOWORD
(
adapter_info
.
DriverVersion
.
LowPart
));
hr
=
add_bstr_property
(
display_adapter
,
L"szDriverVersion"
,
buffer
);
hr
=
add_bstr_property
(
display_adapter
,
L"szDriverVersion"
,
buffer
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
...
@@ -1154,7 +1152,7 @@ static HRESULT fill_display_information_fallback(IDxDiagContainerImpl_Container
...
@@ -1154,7 +1152,7 @@ static HRESULT fill_display_information_fallback(IDxDiagContainerImpl_Container
return
S_OK
;
return
S_OK
;
dd_caps
.
dwCaps
=
DDSCAPS_LOCALVIDMEM
|
DDSCAPS_VIDEOMEMORY
;
dd_caps
.
dwCaps
=
DDSCAPS_LOCALVIDMEM
|
DDSCAPS_VIDEOMEMORY
;
dd_caps
.
dwCaps2
=
dd_caps
.
dwCaps3
=
dd_caps
.
u1
.
dwCaps4
=
0
;
dd_caps
.
dwCaps2
=
dd_caps
.
dwCaps3
=
dd_caps
.
dwCaps4
=
0
;
hr
=
IDirectDraw7_GetAvailableVidMem
(
pDirectDraw
,
&
dd_caps
,
&
tmp
,
NULL
);
hr
=
IDirectDraw7_GetAvailableVidMem
(
pDirectDraw
,
&
dd_caps
,
&
tmp
,
NULL
);
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
{
{
...
@@ -1190,7 +1188,7 @@ static HRESULT fill_display_information_fallback(IDxDiagContainerImpl_Container
...
@@ -1190,7 +1188,7 @@ static HRESULT fill_display_information_fallback(IDxDiagContainerImpl_Container
if
(
surface_descr
.
dwFlags
&
DDSD_PIXELFORMAT
)
if
(
surface_descr
.
dwFlags
&
DDSD_PIXELFORMAT
)
{
{
hr
=
add_ui4_property
(
display_adapter
,
L"dwBpp"
,
hr
=
add_ui4_property
(
display_adapter
,
L"dwBpp"
,
surface_descr
.
u4
.
ddpfPixelFormat
.
u1
.
dwRGBBitCount
);
surface_descr
.
ddpfPixelFormat
.
dwRGBBitCount
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
goto
cleanup
;
goto
cleanup
;
}
}
...
...
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