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
d6bbe90b
Commit
d6bbe90b
authored
Mar 15, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: The swapchain should always have a window handle.
parent
0ae49c35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
device.c
dlls/wined3d/device.c
+5
-2
No files found.
dlls/wined3d/device.c
View file @
d6bbe90b
...
@@ -6625,7 +6625,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE
...
@@ -6625,7 +6625,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE
IWineD3DDevice_SetDisplayMode
(
iface
,
0
,
&
mode
);
IWineD3DDevice_SetDisplayMode
(
iface
,
0
,
&
mode
);
if
(
swapchain
->
win_handle
&&
!
pPresentationParameters
->
Windowed
)
{
if
(
!
pPresentationParameters
->
Windowed
)
{
if
(
swapchain
->
presentParms
.
Windowed
)
{
if
(
swapchain
->
presentParms
.
Windowed
)
{
/* switch from windowed to fs */
/* switch from windowed to fs */
swapchain_setup_fullscreen_window
(
swapchain
,
pPresentationParameters
->
BackBufferWidth
,
swapchain_setup_fullscreen_window
(
swapchain
,
pPresentationParameters
->
BackBufferWidth
,
...
@@ -6636,7 +6637,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE
...
@@ -6636,7 +6637,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE
pPresentationParameters
->
BackBufferWidth
,
pPresentationParameters
->
BackBufferHeight
,
pPresentationParameters
->
BackBufferWidth
,
pPresentationParameters
->
BackBufferHeight
,
TRUE
);
TRUE
);
}
}
}
else
if
(
swapchain
->
win_handle
&&
!
swapchain
->
presentParms
.
Windowed
)
{
}
else
if
(
!
swapchain
->
presentParms
.
Windowed
)
{
/* Fullscreen -> windowed switch */
/* Fullscreen -> windowed switch */
swapchain_restore_fullscreen_window
(
swapchain
);
swapchain_restore_fullscreen_window
(
swapchain
);
}
}
...
...
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