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
288a15fa
Commit
288a15fa
authored
Oct 13, 2016
by
Hadrien Boizard
Committed by
Alexandre Julliard
Oct 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Use EqualRect() instead of memcmp() to compare RECTs.
Signed-off-by:
Hadrien Boizard
<
h.boizard@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c1a8fbbb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
window.c
dlls/winex11.drv/window.c
+3
-3
No files found.
dlls/winex11.drv/window.c
View file @
288a15fa
...
...
@@ -2243,7 +2243,7 @@ void CDECL X11DRV_WindowPosChanging( HWND hwnd, HWND insert_after, UINT swp_flag
surface_rect
=
get_surface_rect
(
visible_rect
);
if
(
data
->
surface
)
{
if
(
!
memcmp
(
&
data
->
surface
->
rect
,
&
surface_rect
,
sizeof
(
surface_rect
)
))
if
(
EqualRect
(
&
data
->
surface
->
rect
,
&
surface_rect
))
{
/* existing surface is good enough */
window_surface_add_ref
(
data
->
surface
);
...
...
@@ -2311,7 +2311,7 @@ void CDECL X11DRV_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags
old_client_rect
.
right
-
data
->
client_rect
.
right
==
x_offset
&&
old_client_rect
.
top
-
data
->
client_rect
.
top
==
y_offset
&&
old_client_rect
.
bottom
-
data
->
client_rect
.
bottom
==
y_offset
&&
!
memcmp
(
&
valid_rects
[
0
],
&
data
->
client_rect
,
sizeof
(
RECT
)
))
EqualRect
(
&
valid_rects
[
0
],
&
data
->
client_rect
))
{
/* if we have an X window the bits will be moved by the X server */
if
(
!
window
&&
(
x_offset
!=
0
||
y_offset
!=
0
))
...
...
@@ -2595,7 +2595,7 @@ BOOL CDECL X11DRV_UpdateLayeredWindow( HWND hwnd, const UPDATELAYEREDWINDOWINFO
OffsetRect
(
&
rect
,
-
window_rect
->
left
,
-
window_rect
->
top
);
surface
=
data
->
surface
;
if
(
!
surface
||
memcmp
(
&
surface
->
rect
,
&
rect
,
sizeof
(
RECT
)
))
if
(
!
surface
||
!
EqualRect
(
&
surface
->
rect
,
&
rect
))
{
data
->
surface
=
create_surface
(
data
->
whole_window
,
&
data
->
vis
,
&
rect
,
color_key
,
!
data
->
embedded
);
...
...
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