resolution test

This commit is contained in:
RandomityGuy 2022-12-23 21:20:42 +05:30
parent 3106423618
commit ac057c7c9d
3 changed files with 5 additions and 3 deletions

View file

@ -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"
> >

View file

@ -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

View file

@ -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