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
ed331cb0
Commit
ed331cb0
authored
Jul 15, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Properly calculate the virtual screen rect in xinerama_init().
parent
adf66a33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
xinerama.c
dlls/winex11.drv/xinerama.c
+3
-2
No files found.
dlls/winex11.drv/xinerama.c
View file @
ed331cb0
...
...
@@ -177,6 +177,7 @@ void xinerama_init( unsigned int width, unsigned int height )
}
primary
=
get_primary
();
SetRectEmpty
(
&
virtual_screen_rect
);
/* coordinates (0,0) have to point to the primary monitor origin */
OffsetRect
(
&
rect
,
-
primary
->
rcMonitor
.
left
,
-
primary
->
rcMonitor
.
top
);
...
...
@@ -184,17 +185,17 @@ void xinerama_init( unsigned int width, unsigned int height )
{
OffsetRect
(
&
monitors
[
i
].
rcMonitor
,
rect
.
left
,
rect
.
top
);
OffsetRect
(
&
monitors
[
i
].
rcWork
,
rect
.
left
,
rect
.
top
);
UnionRect
(
&
virtual_screen_rect
,
&
virtual_screen_rect
,
&
monitors
[
i
].
rcMonitor
);
TRACE
(
"monitor %p: %s work %s%s
\n
"
,
index_to_monitor
(
i
),
wine_dbgstr_rect
(
&
monitors
[
i
].
rcMonitor
),
wine_dbgstr_rect
(
&
monitors
[
i
].
rcWork
),
(
monitors
[
i
].
dwFlags
&
MONITORINFOF_PRIMARY
)
?
" (primary)"
:
""
);
}
virtual_screen_rect
=
rect
;
screen_width
=
primary
->
rcMonitor
.
right
-
primary
->
rcMonitor
.
left
;
screen_height
=
primary
->
rcMonitor
.
bottom
-
primary
->
rcMonitor
.
top
;
TRACE
(
"virtual size: %s primary size: %dx%d
\n
"
,
wine_dbgstr_rect
(
&
rect
),
screen_width
,
screen_height
);
wine_dbgstr_rect
(
&
virtual_screen_
rect
),
screen_width
,
screen_height
);
wine_tsx11_unlock
();
}
...
...
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