Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2266e289
Commit
2266e289
authored
Nov 08, 2018
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Only set WINED3D_SWAPCHAIN_GDI_COMPATIBLE on mappable swapchains.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cdfdfc38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
device.c
dlls/d3d9/device.c
+3
-2
No files found.
dlls/d3d9/device.c
View file @
2266e289
...
...
@@ -346,10 +346,11 @@ static BOOL wined3d_swapchain_desc_from_present_parameters(struct wined3d_swapch
=
wined3dformat_from_d3dformat
(
present_parameters
->
AutoDepthStencilFormat
);
swapchain_desc
->
flags
=
(
present_parameters
->
Flags
&
D3DPRESENTFLAGS_MASK
)
|
WINED3D_SWAPCHAIN_ALLOW_MODE_SWITCH
;
if
(
is_gdi_compat_wined3dformat
(
swapchain_desc
->
backbuffer_format
)
if
((
present_parameters
->
Flags
&
D3DPRESENTFLAG_LOCKABLE_BACKBUFFER
)
&&
(
is_gdi_compat_wined3dformat
(
swapchain_desc
->
backbuffer_format
)
/* WINED3DFMT_UNKNOWN creates the swapchain with the current
* display format, which is always GDI-compatible. */
||
swapchain_desc
->
backbuffer_format
==
WINED3DFMT_UNKNOWN
)
||
swapchain_desc
->
backbuffer_format
==
WINED3DFMT_UNKNOWN
)
)
swapchain_desc
->
flags
|=
WINED3D_SWAPCHAIN_GDI_COMPATIBLE
;
swapchain_desc
->
refresh_rate
=
present_parameters
->
FullScreen_RefreshRateInHz
;
swapchain_desc
->
auto_restore_display_mode
=
TRUE
;
...
...
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