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
b42aa9b8
Commit
b42aa9b8
authored
Jul 26, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Aug 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Cache the output mode list.
parent
0ee74e9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
directx.c
dlls/d3d8/directx.c
+2
-2
No files found.
dlls/d3d8/directx.c
View file @
b42aa9b8
...
...
@@ -152,7 +152,7 @@ static UINT WINAPI d3d8_GetAdapterModeCount(IDirect3D8 *iface, UINT adapter)
wined3d_mutex_lock
();
count
=
wined3d_output_get_mode_count
(
d3d8
->
wined3d_outputs
[
output_idx
],
WINED3DFMT_UNKNOWN
,
WINED3D_SCANLINE_ORDERING_UNKNOWN
,
fals
e
);
WINED3DFMT_UNKNOWN
,
WINED3D_SCANLINE_ORDERING_UNKNOWN
,
tru
e
);
wined3d_mutex_unlock
();
return
count
;
...
...
@@ -174,7 +174,7 @@ static HRESULT WINAPI d3d8_EnumAdapterModes(IDirect3D8 *iface, UINT adapter, UIN
wined3d_mutex_lock
();
hr
=
wined3d_output_get_mode
(
d3d8
->
wined3d_outputs
[
output_idx
],
WINED3DFMT_UNKNOWN
,
WINED3D_SCANLINE_ORDERING_UNKNOWN
,
mode_idx
,
&
wined3d_mode
,
fals
e
);
WINED3D_SCANLINE_ORDERING_UNKNOWN
,
mode_idx
,
&
wined3d_mode
,
tru
e
);
wined3d_mutex_unlock
();
if
(
SUCCEEDED
(
hr
))
...
...
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