Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1283d987
Commit
1283d987
authored
Aug 22, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineandroid: Simplify the EnumDisplayMonitors driver entry point.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3cfe3684
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
24 deletions
+1
-24
init.c
dlls/wineandroid.drv/init.c
+1
-24
No files found.
dlls/wineandroid.drv/init.c
View file @
1283d987
...
...
@@ -223,30 +223,7 @@ BOOL CDECL ANDROID_GetMonitorInfo( HMONITOR handle, LPMONITORINFO info )
*/
BOOL
CDECL
ANDROID_EnumDisplayMonitors
(
HDC
hdc
,
LPRECT
rect
,
MONITORENUMPROC
proc
,
LPARAM
lp
)
{
if
(
hdc
)
{
POINT
origin
;
RECT
limit
,
monrect
;
if
(
!
GetDCOrgEx
(
hdc
,
&
origin
))
return
FALSE
;
if
(
GetClipBox
(
hdc
,
&
limit
)
==
ERROR
)
return
FALSE
;
if
(
rect
&&
!
IntersectRect
(
&
limit
,
&
limit
,
rect
))
return
TRUE
;
monrect
=
default_monitor
.
rcMonitor
;
OffsetRect
(
&
monrect
,
-
origin
.
x
,
-
origin
.
y
);
if
(
IntersectRect
(
&
monrect
,
&
monrect
,
&
limit
))
if
(
!
proc
(
(
HMONITOR
)
1
,
hdc
,
&
monrect
,
lp
))
return
FALSE
;
}
else
{
RECT
unused
;
if
(
!
rect
||
IntersectRect
(
&
unused
,
&
default_monitor
.
rcMonitor
,
rect
))
if
(
!
proc
(
(
HMONITOR
)
1
,
0
,
&
default_monitor
.
rcMonitor
,
lp
))
return
FALSE
;
}
return
TRUE
;
return
proc
(
(
HMONITOR
)
1
,
0
,
&
default_monitor
.
rcMonitor
,
lp
);
}
...
...
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