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
cc06703e
Commit
cc06703e
authored
Dec 03, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineandroid: Add a helper function to update a window surface.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
357c2bb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
WineActivity.java
dlls/wineandroid.drv/WineActivity.java
+15
-4
No files found.
dlls/wineandroid.drv/WineActivity.java
View file @
cc06703e
...
...
@@ -530,6 +530,20 @@ public class WineActivity extends Activity
return
hwnd
;
}
private
void
update_surface
(
boolean
is_client
)
{
if
(
is_client
)
{
Log
.
i
(
LOGTAG
,
String
.
format
(
"set client surface hwnd %08x %s"
,
hwnd
,
client_surface
));
if
(
client_surface
!=
null
)
wine_surface_changed
(
hwnd
,
client_surface
,
true
);
}
else
{
Log
.
i
(
LOGTAG
,
String
.
format
(
"set window surface hwnd %08x %s"
,
hwnd
,
window_surface
));
if
(
window_surface
!=
null
)
wine_surface_changed
(
hwnd
,
window_surface
,
false
);
}
}
public
void
set_surface
(
SurfaceTexture
surftex
,
boolean
is_client
)
{
if
(
is_client
)
...
...
@@ -540,8 +554,6 @@ public class WineActivity extends Activity
client_surftex
=
surftex
;
client_surface
=
new
Surface
(
surftex
);
}
Log
.
i
(
LOGTAG
,
String
.
format
(
"set client surface hwnd %08x %s"
,
hwnd
,
client_surface
));
wine_surface_changed
(
hwnd
,
client_surface
,
true
);
}
else
{
...
...
@@ -551,9 +563,8 @@ public class WineActivity extends Activity
window_surftex
=
surftex
;
window_surface
=
new
Surface
(
surftex
);
}
Log
.
i
(
LOGTAG
,
String
.
format
(
"set window surface hwnd %08x %s"
,
hwnd
,
window_surface
));
wine_surface_changed
(
hwnd
,
window_surface
,
false
);
}
update_surface
(
is_client
);
}
public
void
get_event_pos
(
MotionEvent
event
,
int
[]
pos
)
...
...
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