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
84102e75
Commit
84102e75
authored
Oct 04, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Mirror the DC exposure region for RTL devices.
parent
d076dfa8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
9 deletions
+19
-9
init.c
dlls/winex11.drv/init.c
+11
-9
x11drv.h
dlls/winex11.drv/x11drv.h
+8
-0
No files found.
dlls/winex11.drv/init.c
View file @
84102e75
...
...
@@ -388,18 +388,20 @@ INT CDECL X11DRV_ExtEscape( X11DRV_PDEVICE *physDev, INT escape, INT in_count, L
if
(
event
.
type
==
NoExpose
)
break
;
if
(
event
.
type
==
GraphicsExpose
)
{
int
x
=
event
.
xgraphicsexpose
.
x
-
physDev
->
dc_rect
.
left
;
int
y
=
event
.
xgraphicsexpose
.
y
-
physDev
->
dc_rect
.
top
;
RECT
rect
;
TRACE
(
"got %d,%d %dx%d count %d
\n
"
,
x
,
y
,
event
.
xgraphicsexpose
.
width
,
event
.
xgraphicsexpose
.
height
,
rect
.
left
=
event
.
xgraphicsexpose
.
x
-
physDev
->
dc_rect
.
left
;
rect
.
top
=
event
.
xgraphicsexpose
.
y
-
physDev
->
dc_rect
.
top
;
rect
.
right
=
rect
.
left
+
event
.
xgraphicsexpose
.
width
;
rect
.
bottom
=
rect
.
top
+
event
.
xgraphicsexpose
.
height
;
if
(
GetLayout
(
physDev
->
hdc
)
&
LAYOUT_RTL
)
mirror_rect
(
&
physDev
->
dc_rect
,
&
rect
);
TRACE
(
"got %s count %d
\n
"
,
wine_dbgstr_rect
(
&
rect
),
event
.
xgraphicsexpose
.
count
);
if
(
!
tmp
)
tmp
=
CreateRectRgn
(
0
,
0
,
0
,
0
);
SetRectRgn
(
tmp
,
x
,
y
,
x
+
event
.
xgraphicsexpose
.
width
,
y
+
event
.
xgraphicsexpose
.
height
);
if
(
!
tmp
)
tmp
=
CreateRectRgnIndirect
(
&
rect
);
else
SetRectRgn
(
tmp
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
if
(
hrgn
)
CombineRgn
(
hrgn
,
hrgn
,
tmp
,
RGN_OR
);
else
{
...
...
dlls/winex11.drv/x11drv.h
View file @
84102e75
...
...
@@ -777,6 +777,14 @@ extern void update_user_time( Time time );
extern
void
update_net_wm_states
(
Display
*
display
,
struct
x11drv_win_data
*
data
);
extern
void
make_window_embedded
(
Display
*
display
,
struct
x11drv_win_data
*
data
);
static
inline
void
mirror_rect
(
const
RECT
*
window_rect
,
RECT
*
rect
)
{
int
width
=
window_rect
->
right
-
window_rect
->
left
;
int
tmp
=
rect
->
left
;
rect
->
left
=
width
-
rect
->
right
;
rect
->
right
=
width
-
tmp
;
}
/* X context to associate a hwnd to an X window */
extern
XContext
winContext
;
...
...
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