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
2eebedf3
Commit
2eebedf3
authored
Apr 30, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Handle Expose events by refreshing from the window surface.
parent
33ac850c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
event.c
dlls/winex11.drv/event.c
+10
-6
No files found.
dlls/winex11.drv/event.c
View file @
2eebedf3
...
...
@@ -791,7 +791,7 @@ static void X11DRV_Expose( HWND hwnd, XEvent *xev )
XExposeEvent
*
event
=
&
xev
->
xexpose
;
RECT
rect
;
struct
x11drv_win_data
*
data
;
int
flags
=
RDW_INVALIDATE
|
RDW_ERASE
;
int
flags
=
RDW_INVALIDATE
|
RDW_ERASE
|
RDW_FRAME
;
TRACE
(
"win %p (%lx) %d,%d %dx%d
\n
"
,
hwnd
,
event
->
window
,
event
->
x
,
event
->
y
,
event
->
width
,
event
->
height
);
...
...
@@ -802,15 +802,19 @@ static void X11DRV_Expose( HWND hwnd, XEvent *xev )
rect
.
top
=
event
->
y
;
rect
.
right
=
event
->
x
+
event
->
width
;
rect
.
bottom
=
event
->
y
+
event
->
height
;
if
(
event
->
window
==
data
->
whole_window
)
if
(
data
->
surface
)
{
OffsetRect
(
&
rect
,
data
->
whole_rect
.
left
-
data
->
client_rect
.
left
,
data
->
whole_rect
.
top
-
data
->
client_rect
.
top
);
flags
|=
RDW_FRAME
;
data
->
surface
->
funcs
->
lock
(
data
->
surface
);
add_bounds_rect
(
data
->
surface
->
funcs
->
get_bounds
(
data
->
surface
),
&
rect
);
data
->
surface
->
funcs
->
unlock
(
data
->
surface
)
;
}
if
(
event
->
window
!=
root_window
)
{
OffsetRect
(
&
rect
,
data
->
whole_rect
.
left
-
data
->
client_rect
.
left
,
data
->
whole_rect
.
top
-
data
->
client_rect
.
top
);
if
(
GetWindowLongW
(
data
->
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_LAYOUTRTL
)
mirror_rect
(
&
data
->
client_rect
,
&
rect
);
...
...
@@ -829,7 +833,7 @@ static void X11DRV_Expose( HWND hwnd, XEvent *xev )
}
else
OffsetRect
(
&
rect
,
virtual_screen_rect
.
left
,
virtual_screen_rect
.
top
);
RedrawWindow
(
hwnd
,
&
rect
,
0
,
flags
);
if
(
!
data
->
surface
)
RedrawWindow
(
hwnd
,
&
rect
,
0
,
flags
);
}
...
...
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