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
6956746a
Commit
6956746a
authored
Mar 09, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxgi: Call wined3d_swapchain_state_set_fullscreen in d3d12_swapchain_init.
Signed-off-by:
Stefan Dösinger
<
stefan@codeweavers.com
>
parent
99cc854a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
swapchain.c
dlls/dxgi/swapchain.c
+6
-1
No files found.
dlls/dxgi/swapchain.c
View file @
6956746a
...
...
@@ -2794,6 +2794,7 @@ static HRESULT d3d12_swapchain_init(struct d3d12_swapchain *swapchain, IWineDXGI
VkBool32
supported
;
VkDevice
vk_device
;
VkFence
vk_fence
;
bool
fullscreen
;
VkResult
vr
;
HRESULT
hr
;
...
...
@@ -2838,6 +2839,9 @@ static HRESULT d3d12_swapchain_init(struct d3d12_swapchain *swapchain, IWineDXGI
return
hr
;
}
fullscreen
=
!
wined3d_desc
.
windowed
;
wined3d_desc
.
windowed
=
TRUE
;
dxgi_factory
=
unsafe_impl_from_IDXGIFactory
((
IDXGIFactory
*
)
factory
);
if
(
FAILED
(
hr
=
wined3d_swapchain_state_create
(
&
wined3d_desc
,
window
,
dxgi_factory
->
wined3d
,
&
swapchain
->
state_parent
,
&
swapchain
->
state
)))
...
...
@@ -2846,8 +2850,9 @@ static HRESULT d3d12_swapchain_init(struct d3d12_swapchain *swapchain, IWineDXGI
return
hr
;
}
if
(
!
fullscreen_desc
->
Windowed
)
if
(
fullscreen
)
{
wined3d_desc
.
windowed
=
FALSE
;
hr
=
wined3d_swapchain_state_set_fullscreen
(
swapchain
->
state
,
&
wined3d_desc
,
NULL
);
if
(
FAILED
(
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