mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-01-10 01:02:16 +00:00
resolution test
This commit is contained in:
parent
8abc5fade3
commit
6f7daca627
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"
|
||||
>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue