resolution test

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

View file

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

View file

@ -34,7 +34,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

View file

@ -369,7 +369,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
@ -384,7 +385,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