Skip to content

Commit

Permalink
fix ARM handling
Browse files Browse the repository at this point in the history
  • Loading branch information
hypnotoad committed Apr 12, 2023
1 parent f9f2155 commit 09e7a9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion board/fischertechnik/TXT/rootfs/opt/ftc/TouchStyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
TXPI = os.path.isfile('/etc/tx-pi')
# check for Fischertechnik community firmware app development settings
DEV = os.path.isfile("/etc/ft-cfw-dev.txt")
# Do we use an ARM architecture?


DEV_ORIENTATION = "PORTRAIT"

Expand Down
7 changes: 4 additions & 3 deletions board/fischertechnik/TXT/rootfs/opt/ftc/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import xml.etree.ElementTree as ET

from TouchStyle import TouchDialog, TouchApplication, \
TXT, BUTTON_THREAD, getScreenSize, IS_ARM
TXT, BUTTON_THREAD, getScreenSize
from touch_keyboard import TouchKeyboard

from PyQt5.QtCore import *
Expand Down Expand Up @@ -251,8 +251,9 @@ def addWidget(self, w):

# TXT windows are always fullscreen
def show(self):
# go fullscreen on arm, stay windowed otherwise
if IS_ARM:
# go fullscreen on small displays, stay windowed otherwise
s = getScreenSize()
if s.height() < 480 || s.width() < 480:
QWidget.showFullScreen(self)
else:
QWidget.show(self)
Expand Down

0 comments on commit 09e7a9c

Please sign in to comment.