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
2cca18dd
Commit
2cca18dd
authored
Aug 03, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Break positioning of graphics in mirrored contexts to be broken the same way as Windows.
parent
cc945706
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
graphics.c
dlls/winex11.drv/graphics.c
+5
-4
No files found.
dlls/winex11.drv/graphics.c
View file @
2cca18dd
...
...
@@ -82,13 +82,14 @@ static RECT get_device_rect( HDC hdc, int left, int top, int right, int bottom )
rect
.
top
=
top
;
rect
.
right
=
right
;
rect
.
bottom
=
bottom
;
LPtoDP
(
hdc
,
(
POINT
*
)
&
rect
,
2
);
if
(
GetLayout
(
hdc
)
&
LAYOUT_RTL
)
{
int
tmp
=
rect
.
left
;
rect
.
left
=
rect
.
right
+
1
;
rect
.
right
=
tmp
+
1
;
/* shift the rectangle so that the right border is included after mirroring */
/* it would be more correct to do this after LPtoDP but that's not what Windows does */
rect
.
left
--
;
rect
.
right
--
;
}
LPtoDP
(
hdc
,
(
POINT
*
)
&
rect
,
2
);
if
(
rect
.
left
>
rect
.
right
)
{
int
tmp
=
rect
.
left
;
...
...
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