Commit 416637c4 authored by kenan's avatar kenan

isKeepScale setLayout

parent b162c9b2
......@@ -213,9 +213,9 @@ public class YGOMobileActivity extends NativeActivity implements
mFullScreenUtils.fullscreen();
app().attachGame(this);
if(!app().isKeepScale()) {
//游戏大小
int[] size = getGameSize();
//游戏大小
int[] size = getGameSize();
if(app().isKeepScale()) {
getWindow().setLayout(size[0], size[1]);
}
}
......@@ -233,10 +233,6 @@ public class YGOMobileActivity extends NativeActivity implements
@Override
public void setContentView(View view) {
if(!app().isKeepScale()) {
super.setContentView(view);
return;
}
int[] size = getGameSize();
int w = size[0];
int h = size[1];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment