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
70008999
Commit
70008999
authored
Jun 22, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Just forward wined3d_device_get_display_mode() to the appropriate swapchain.
parent
0f0fe492
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
24 deletions
+3
-24
device.c
dlls/wined3d/device.c
+3
-24
No files found.
dlls/wined3d/device.c
View file @
70008999
...
...
@@ -3723,31 +3723,10 @@ HRESULT CDECL wined3d_device_get_display_mode(const struct wined3d_device *devic
TRACE
(
"device %p, swapchain_idx %u, mode %p.
\n
"
,
device
,
swapchain_idx
,
mode
);
if
(
swapchain_idx
)
if
(
SUCCEEDED
(
hr
=
wined3d_device_get_swapchain
(
device
,
swapchain_idx
,
&
swapchain
))
)
{
hr
=
wined3d_device_get_swapchain
(
device
,
swapchain_idx
,
&
swapchain
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
wined3d_swapchain_get_display_mode
(
swapchain
,
mode
);
wined3d_swapchain_decref
(
swapchain
);
}
}
else
{
const
struct
wined3d_adapter
*
adapter
=
device
->
adapter
;
/* Don't read the real display mode, but return the stored mode
* instead. X11 can't change the color depth, and some apps are
* pretty angry if they SetDisplayMode from 24 to 16 bpp and find out
* that GetDisplayMode still returns 24 bpp.
*
* Also don't relay to the swapchain because with ddraw it's possible
* that there isn't a swapchain at all. */
mode
->
width
=
adapter
->
screen_size
.
cx
;
mode
->
height
=
adapter
->
screen_size
.
cy
;
mode
->
format_id
=
adapter
->
screen_format
;
mode
->
refresh_rate
=
0
;
hr
=
WINED3D_OK
;
hr
=
wined3d_swapchain_get_display_mode
(
swapchain
,
mode
);
wined3d_swapchain_decref
(
swapchain
);
}
return
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