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
a6f85e61
Commit
a6f85e61
authored
Jan 22, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineandroid: Don't allocate a window surface for off-screen windows.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5ef349e4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
window.c
dlls/wineandroid.drv/window.c
+9
-11
No files found.
dlls/wineandroid.drv/window.c
View file @
a6f85e61
...
...
@@ -1028,17 +1028,15 @@ static struct android_win_data *create_win_data( HWND hwnd, const RECT *window_r
}
static
inline
RECT
get_surface_rect
(
const
RECT
*
visibl
e_rect
)
static
inline
BOOL
get_surface_rect
(
const
RECT
*
visible_rect
,
RECT
*
surfac
e_rect
)
{
RECT
rect
;
IntersectRect
(
&
rect
,
visible_rect
,
&
virtual_screen_rect
);
OffsetRect
(
&
rect
,
-
visible_rect
->
left
,
-
visible_rect
->
top
);
rect
.
left
&=
~
31
;
rect
.
top
&=
~
31
;
rect
.
right
=
max
(
rect
.
left
+
32
,
(
rect
.
right
+
31
)
&
~
31
);
rect
.
bottom
=
max
(
rect
.
top
+
32
,
(
rect
.
bottom
+
31
)
&
~
31
);
return
rect
;
if
(
!
IntersectRect
(
surface_rect
,
visible_rect
,
&
virtual_screen_rect
))
return
FALSE
;
OffsetRect
(
surface_rect
,
-
visible_rect
->
left
,
-
visible_rect
->
top
);
surface_rect
->
left
&=
~
31
;
surface_rect
->
top
&=
~
31
;
surface_rect
->
right
=
max
(
surface_rect
->
left
+
32
,
(
surface_rect
->
right
+
31
)
&
~
31
);
surface_rect
->
bottom
=
max
(
surface_rect
->
top
+
32
,
(
surface_rect
->
bottom
+
31
)
&
~
31
);
return
TRUE
;
}
...
...
@@ -1069,8 +1067,8 @@ void CDECL ANDROID_WindowPosChanging( HWND hwnd, HWND insert_after, UINT swp_fla
if
(
data
->
parent
)
goto
done
;
if
(
swp_flags
&
SWP_HIDEWINDOW
)
goto
done
;
if
(
is_argb_surface
(
data
->
surface
))
goto
done
;
if
(
!
get_surface_rect
(
visible_rect
,
&
surface_rect
))
goto
done
;
surface_rect
=
get_surface_rect
(
visible_rect
);
if
(
data
->
surface
)
{
if
(
!
memcmp
(
&
data
->
surface
->
rect
,
&
surface_rect
,
sizeof
(
surface_rect
)
))
...
...
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