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
f147c1e9
Commit
f147c1e9
authored
May 23, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
May 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Don't touch the window during mode setting if we're not in exclusive mode.
parent
43aac32f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
ddraw.c
dlls/ddraw/ddraw.c
+5
-0
d3d.c
dlls/ddraw/tests/d3d.c
+1
-1
No files found.
dlls/ddraw/ddraw.c
View file @
f147c1e9
...
...
@@ -883,8 +883,13 @@ static HRESULT ddraw_set_display_mode(IDirectDrawImpl *ddraw, DWORD Width, DWORD
/* TODO: Lose the primary surface */
hr
=
wined3d_device_set_display_mode
(
ddraw
->
wined3d_device
,
0
,
&
Mode
);
if
(
ddraw
->
cooperative_level
&
DDSCL_EXCLUSIVE
)
{
wined3d_device_restore_fullscreen_window
(
ddraw
->
wined3d_device
,
ddraw
->
dest_window
);
wined3d_device_setup_fullscreen_window
(
ddraw
->
wined3d_device
,
ddraw
->
dest_window
,
Width
,
Height
);
}
LeaveCriticalSection
(
&
ddraw_cs
);
switch
(
hr
)
{
...
...
dlls/ddraw/tests/d3d.c
View file @
f147c1e9
...
...
@@ -4046,7 +4046,7 @@ static void test_coop_level_mode_set(void)
ok
(
SUCCEEDED
(
hr
),
"SetDipslayMode failed, hr %#x.
\n
"
,
hr
);
GetWindowRect
(
window
,
&
r
);
todo_wine
ok
(
EqualRect
(
&
r
,
&
fullscreen_rect
),
"Expected {%d, %d, %d, %d}, got {%d, %d, %d, %d}.
\n
"
,
ok
(
EqualRect
(
&
r
,
&
fullscreen_rect
),
"Expected {%d, %d, %d, %d}, got {%d, %d, %d, %d}.
\n
"
,
fullscreen_rect
.
left
,
fullscreen_rect
.
top
,
fullscreen_rect
.
right
,
fullscreen_rect
.
bottom
,
r
.
left
,
r
.
top
,
r
.
right
,
r
.
bottom
);
...
...
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