diff --git a/sbapp/main.py b/sbapp/main.py index 464e38e..dce8633 100644 --- a/sbapp/main.py +++ b/sbapp/main.py @@ -24,6 +24,9 @@ import base64 import threading import RNS.vendor.umsgpack as msgpack +WINDOW_DEFAULT_WIDTH = "480" +WINDOW_DEFAULT_HEIGHT = "750" + app_ui_scaling_path = None def apply_ui_scale(): global app_ui_scaling_path @@ -171,6 +174,11 @@ if not args.daemon: local = os.path.dirname(__file__) sys.path.append(local) + if not RNS.vendor.platformutils.is_android(): + from kivy.config import Config + Config.set("graphics", "width", WINDOW_DEFAULT_WIDTH) + Config.set("graphics", "height", WINDOW_DEFAULT_HEIGHT) + if args.daemon: from .sideband.core import SidebandCore class DaemonElement():