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
9c3722ec
Commit
9c3722ec
authored
Nov 20, 2012
by
Andrew Talbot
Committed by
Alexandre Julliard
Nov 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Remove unused variable.
parent
9e01b175
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
ddraw.c
dlls/ddraw/ddraw.c
+3
-4
No files found.
dlls/ddraw/ddraw.c
View file @
9c3722ec
...
...
@@ -5168,7 +5168,6 @@ static void CDECL device_parent_mode_changed(struct wined3d_device_parent *devic
struct
ddraw
*
ddraw
=
ddraw_from_device_parent
(
device_parent
);
MONITORINFO
monitor_info
;
HMONITOR
monitor
;
BOOL
ret
;
RECT
*
r
;
TRACE
(
"device_parent %p.
\n
"
,
device_parent
);
...
...
@@ -5181,7 +5180,7 @@ static void CDECL device_parent_mode_changed(struct wined3d_device_parent *devic
monitor
=
MonitorFromWindow
(
ddraw
->
swapchain_window
,
MONITOR_DEFAULTTOPRIMARY
);
monitor_info
.
cbSize
=
sizeof
(
monitor_info
);
if
(
!
(
ret
=
GetMonitorInfoW
(
monitor
,
&
monitor_info
)
))
if
(
!
GetMonitorInfoW
(
monitor
,
&
monitor_info
))
{
ERR
(
"Failed to get monitor info.
\n
"
);
return
;
...
...
@@ -5190,8 +5189,8 @@ static void CDECL device_parent_mode_changed(struct wined3d_device_parent *devic
r
=
&
monitor_info
.
rcMonitor
;
TRACE
(
"Resizing window %p to %s.
\n
"
,
ddraw
->
swapchain_window
,
wine_dbgstr_rect
(
r
));
if
(
!
(
ret
=
SetWindowPos
(
ddraw
->
swapchain_window
,
HWND_TOP
,
r
->
left
,
r
->
top
,
r
->
right
-
r
->
left
,
r
->
bottom
-
r
->
top
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
)
))
if
(
!
SetWindowPos
(
ddraw
->
swapchain_window
,
HWND_TOP
,
r
->
left
,
r
->
top
,
r
->
right
-
r
->
left
,
r
->
bottom
-
r
->
top
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
))
ERR
(
"Failed to resize window.
\n
"
);
}
...
...
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