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
0766d375
Commit
0766d375
authored
Sep 08, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Mirror the returned rectangle in GetClipBox for RTL layout.
parent
72533173
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
clipping.c
dlls/gdi32/clipping.c
+6
-0
mapping.c
dlls/gdi32/tests/mapping.c
+6
-0
No files found.
dlls/gdi32/clipping.c
View file @
0766d375
...
...
@@ -400,6 +400,12 @@ INT WINAPI GetClipBox( HDC hdc, LPRECT rect )
DeleteObject
(
hrgn
);
}
else
ret
=
GetRgnBox
(
dc
->
hVisRgn
,
rect
);
if
(
dc
->
layout
&
LAYOUT_RTL
)
{
int
tmp
=
rect
->
left
;
rect
->
left
=
rect
->
right
-
1
;
rect
->
right
=
tmp
-
1
;
}
DPtoLP
(
hdc
,
(
LPPOINT
)
rect
,
2
);
release_dc_ptr
(
dc
);
return
ret
;
...
...
dlls/gdi32/tests/mapping.c
View file @
0766d375
...
...
@@ -313,6 +313,9 @@ static void test_dc_layout(void)
GetRgnBox
(
hrgn
,
&
ret_rc
);
ok
(
EqualRect
(
&
rc
,
&
ret_rc
),
"wrong clip box %d,%d - %d,%d
\n
"
,
ret_rc
.
left
,
ret_rc
.
top
,
ret_rc
.
right
,
ret_rc
.
bottom
);
GetClipBox
(
hdc
,
&
ret_rc
);
ok
(
EqualRect
(
&
rc
,
&
ret_rc
),
"wrong clip box %d,%d - %d,%d
\n
"
,
ret_rc
.
left
,
ret_rc
.
top
,
ret_rc
.
right
,
ret_rc
.
bottom
);
SetRectRgn
(
hrgn
,
60
,
10
,
80
,
20
);
pSetLayout
(
hdc
,
LAYOUT_LTR
);
ExtSelectClipRgn
(
hdc
,
hrgn
,
RGN_OR
);
...
...
@@ -322,6 +325,9 @@ static void test_dc_layout(void)
GetRgnBox
(
hrgn
,
&
ret_rc
);
ok
(
EqualRect
(
&
rc
,
&
ret_rc
),
"wrong clip box %d,%d - %d,%d
\n
"
,
ret_rc
.
left
,
ret_rc
.
top
,
ret_rc
.
right
,
ret_rc
.
bottom
);
GetClipBox
(
hdc
,
&
ret_rc
);
ok
(
EqualRect
(
&
rc
,
&
ret_rc
),
"wrong clip box %d,%d - %d,%d
\n
"
,
ret_rc
.
left
,
ret_rc
.
top
,
ret_rc
.
right
,
ret_rc
.
bottom
);
/* OffsetClipRgn mirrors too */
OffsetClipRgn
(
hdc
,
5
,
5
);
...
...
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