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
34119228
Commit
34119228
authored
Aug 23, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Simplify the EnumDisplayMonitors driver entry point.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
18564c76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
28 deletions
+2
-28
xinerama.c
dlls/winex11.drv/xinerama.c
+2
-28
No files found.
dlls/winex11.drv/xinerama.c
View file @
34119228
...
...
@@ -267,34 +267,8 @@ BOOL CDECL X11DRV_EnumDisplayMonitors( HDC hdc, LPRECT rect, MONITORENUMPROC pro
{
int
i
;
if
(
hdc
)
{
POINT
origin
;
RECT
limit
;
if
(
!
GetDCOrgEx
(
hdc
,
&
origin
))
return
FALSE
;
if
(
GetClipBox
(
hdc
,
&
limit
)
==
ERROR
)
return
FALSE
;
if
(
rect
&&
!
IntersectRect
(
&
limit
,
&
limit
,
rect
))
return
TRUE
;
for
(
i
=
0
;
i
<
nb_monitors
;
i
++
)
if
(
!
proc
(
index_to_monitor
(
i
),
0
,
&
monitors
[
i
].
rcMonitor
,
lp
))
return
FALSE
;
for
(
i
=
0
;
i
<
nb_monitors
;
i
++
)
{
RECT
monrect
=
monitors
[
i
].
rcMonitor
;
OffsetRect
(
&
monrect
,
-
origin
.
x
,
-
origin
.
y
);
if
(
IntersectRect
(
&
monrect
,
&
monrect
,
&
limit
))
if
(
!
proc
(
index_to_monitor
(
i
),
hdc
,
&
monrect
,
lp
))
return
FALSE
;
}
}
else
{
for
(
i
=
0
;
i
<
nb_monitors
;
i
++
)
{
RECT
unused
;
if
(
!
rect
||
IntersectRect
(
&
unused
,
&
monitors
[
i
].
rcMonitor
,
rect
))
if
(
!
proc
(
index_to_monitor
(
i
),
0
,
&
monitors
[
i
].
rcMonitor
,
lp
))
return
FALSE
;
}
}
return
TRUE
;
}
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