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
357c2bb9
Commit
357c2bb9
authored
Dec 03, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineandroid: Specify the window scale directly in the constructor.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0f196859
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
WineActivity.java
dlls/wineandroid.drv/WineActivity.java
+5
-6
No files found.
dlls/wineandroid.drv/WineActivity.java
View file @
357c2bb9
...
...
@@ -348,16 +348,16 @@ public class WineActivity extends Activity
protected
WineWindowGroup
window_group
;
protected
WineWindowGroup
client_group
;
public
WineWindow
(
int
w
,
WineWindow
parent
)
public
WineWindow
(
int
w
,
WineWindow
parent
,
float
scale
)
{
Log
.
i
(
LOGTAG
,
String
.
format
(
"create hwnd %08x"
,
w
));
hwnd
=
w
;
owner
=
0
;
style
=
0
;
scale
=
1.0f
;
visible
=
false
;
visible_rect
=
client_rect
=
new
Rect
(
0
,
0
,
0
,
0
);
this
.
parent
=
parent
;
this
.
scale
=
scale
;
children
=
new
ArrayList
<
WineWindow
>();
win_map
.
put
(
w
,
this
);
if
(
parent
!=
null
)
parent
.
children
.
add
(
this
);
...
...
@@ -744,11 +744,11 @@ public class WineActivity extends Activity
public
TopView
(
Context
context
,
int
hwnd
)
{
super
(
context
);
desktop_window
=
new
WineWindow
(
hwnd
,
null
);
desktop_window
=
new
WineWindow
(
hwnd
,
null
,
1.0f
);
addView
(
desktop_window
.
create_whole_view
()
);
desktop_window
.
client_group
.
bringToFront
();
message_window
=
new
WineWindow
(
WineWindow
.
HWND_MESSAGE
,
null
);
message_window
=
new
WineWindow
(
WineWindow
.
HWND_MESSAGE
,
null
,
1.0f
);
message_window
.
create_window_groups
();
}
...
...
@@ -786,8 +786,7 @@ public class WineActivity extends Activity
WineWindow
win
=
get_window
(
hwnd
);
if
(
win
==
null
)
{
win
=
new
WineWindow
(
hwnd
,
get_window
(
parent
));
win
.
scale
=
scale
;
win
=
new
WineWindow
(
hwnd
,
get_window
(
parent
),
scale
);
win
.
create_window_groups
();
if
(
win
.
parent
==
desktop_window
)
win
.
create_whole_view
();
}
...
...
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