Browse Source

Debug pixel ratio information

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.1
falkTX 4 years ago
parent
commit
8491fb91ff
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      source/frontend/carla_host.py

+ 1
- 0
source/frontend/carla_host.py View File

@@ -2426,6 +2426,7 @@ class HostWindow(QMainWindow):

if QT_VERSION >= 0x50600:
self.host.set_engine_option(ENGINE_OPTION_FRONTEND_UI_SCALE, int(self.devicePixelRatioF() * 1000), "")
print("Frontend pixel ratio is", self.devicePixelRatioF())

# set our gui as parent for all plugins UIs
if self.host.manageUIs and not (self.host.isControl or self.host.isPlugin):


Loading…
Cancel
Save