mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-27 13:11:42 +00:00
resolution test
This commit is contained in:
parent
3106423618
commit
ac057c7c9d
3 changed files with 5 additions and 3 deletions
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
<activity android:name="org.haxe.HashLinkActivity"
|
<activity android:name="org.haxe.HashLinkActivity"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
|
android:orientation="horizontal"
|
||||||
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
|
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ class Main extends hxd.App {
|
||||||
s2d.scaleMode = Zoom(zoomRatio);
|
s2d.scaleMode = Zoom(zoomRatio);
|
||||||
#end
|
#end
|
||||||
#if android
|
#if android
|
||||||
var zoomRatio = Window.getInstance().height / 768;
|
var zoomRatio = Window.getInstance().height / 700;
|
||||||
s2d.scaleMode = Zoom(zoomRatio);
|
s2d.scaleMode = Zoom(zoomRatio);
|
||||||
#end
|
#end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -406,7 +406,8 @@ class Settings {
|
||||||
public static function init() {
|
public static function init() {
|
||||||
load();
|
load();
|
||||||
#if hl
|
#if hl
|
||||||
Window.getInstance().resize(optionsSettings.screenWidth, optionsSettings.screenHeight);
|
Window.getInstance().resize(Window.getInstance().width, Window.getInstance().height);
|
||||||
|
// Window.getInstance().resize(optionsSettings.screenWidth, optionsSettings.screenHeight);
|
||||||
Window.getInstance().displayMode = optionsSettings.isFullScreen ? FullscreenResize : Windowed;
|
Window.getInstance().displayMode = optionsSettings.isFullScreen ? FullscreenResize : Windowed;
|
||||||
#end
|
#end
|
||||||
#if js
|
#if js
|
||||||
|
|
@ -421,7 +422,7 @@ class Settings {
|
||||||
Settings.zoomRatio = zoomRatio;
|
Settings.zoomRatio = zoomRatio;
|
||||||
#end
|
#end
|
||||||
#if android
|
#if android
|
||||||
var zoomRatio = Window.getInstance().height / 768;
|
var zoomRatio = Window.getInstance().height / 700;
|
||||||
Settings.zoomRatio = zoomRatio;
|
Settings.zoomRatio = zoomRatio;
|
||||||
#end
|
#end
|
||||||
#if hl
|
#if hl
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue