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
2b0684c5
Commit
2b0684c5
authored
Nov 10, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Make switching to/from fullscreen work more than once.
parent
6fcb33f5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
ddraw.c
dlls/ddraw/ddraw.c
+8
-8
No files found.
dlls/ddraw/ddraw.c
View file @
2b0684c5
...
...
@@ -647,15 +647,12 @@ static HRESULT WINAPI ddraw7_SetCooperativeLevel(IDirectDraw7 *iface, HWND hwnd,
&&
(
hwnd
!=
window
||
!
(
cooplevel
&
DDSCL_EXCLUSIVE
)))
IWineD3DDevice_ReleaseFocusWindow
(
This
->
wineD3DDevice
);
/* Do we switch from fullscreen to non-fullscreen ? */
if
(
!
(
cooplevel
&
DDSCL_FULLSCREEN
)
&&
(
This
->
cooperative_level
&
DDSCL_FULLSCREEN
))
if
((
cooplevel
&
DDSCL_FULLSCREEN
)
!=
(
This
->
cooperative_level
&
DDSCL_FULLSCREEN
)
||
hwnd
!=
window
)
{
IWineD3DDevice_RestoreFullscreenWindow
(
This
->
wineD3DDevice
,
This
->
dest_window
);
}
/* Don't override focus windows or private device windows */
if
(
hwnd
&&
!
This
->
focuswindow
&&
!
This
->
devicewindow
&&
(
hwnd
!=
window
))
if
(
This
->
cooperative_level
&
DDSCL_FULLSCREEN
)
{
IWineD3DDevice_RestoreFullscreenWindow
(
This
->
wineD3DDevice
,
window
);
}
if
(
cooplevel
&
DDSCL_FULLSCREEN
)
{
WINED3DDISPLAYMODE
display_mode
;
...
...
@@ -663,7 +660,6 @@ static HRESULT WINAPI ddraw7_SetCooperativeLevel(IDirectDraw7 *iface, HWND hwnd,
IWineD3D_GetAdapterDisplayMode
(
This
->
wineD3D
,
WINED3DADAPTER_DEFAULT
,
&
display_mode
);
IWineD3DDevice_SetupFullscreenWindow
(
This
->
wineD3DDevice
,
hwnd
,
display_mode
.
Width
,
display_mode
.
Height
);
}
This
->
dest_window
=
hwnd
;
}
if
((
cooplevel
&
DDSCL_EXCLUSIVE
)
...
...
@@ -678,6 +674,10 @@ static HRESULT WINAPI ddraw7_SetCooperativeLevel(IDirectDraw7 *iface, HWND hwnd,
}
}
/* Don't override focus windows or private device windows */
if
(
hwnd
&&
!
This
->
focuswindow
&&
!
This
->
devicewindow
&&
(
hwnd
!=
window
))
This
->
dest_window
=
hwnd
;
if
(
cooplevel
&
DDSCL_CREATEDEVICEWINDOW
)
{
/* Don't create a device window if a focus window is set */
...
...
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