mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-02-18 04:01:11 +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"
|
||||
android:label="@string/app_name"
|
||||
android:orientation="horizontal"
|
||||
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
|
||||
android:exported="true"
|
||||
>
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class Main extends hxd.App {
|
|||
s2d.scaleMode = Zoom(zoomRatio);
|
||||
#end
|
||||
#if android
|
||||
var zoomRatio = Window.getInstance().height / 768;
|
||||
var zoomRatio = Window.getInstance().height / 700;
|
||||
s2d.scaleMode = Zoom(zoomRatio);
|
||||
#end
|
||||
|
||||
|
|
|
|||
|
|
@ -406,7 +406,8 @@ class Settings {
|
|||
public static function init() {
|
||||
load();
|
||||
#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;
|
||||
#end
|
||||
#if js
|
||||
|
|
@ -421,7 +422,7 @@ class Settings {
|
|||
Settings.zoomRatio = zoomRatio;
|
||||
#end
|
||||
#if android
|
||||
var zoomRatio = Window.getInstance().height / 768;
|
||||
var zoomRatio = Window.getInstance().height / 700;
|
||||
Settings.zoomRatio = zoomRatio;
|
||||
#end
|
||||
#if hl
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue