Commit 686d965f authored by Orion's avatar Orion

enable scaling on high dpi screens

parent 9b05e1d1
......@@ -45,6 +45,11 @@ class PyRookApplication(QApplication):
self.addLibraryPath(sys.path[0])
os.chdir(sys.path[0])
try:
# only available on 5.6+
self.setAttribute(Qt.AA_EnableHighDPIScaling)
except Exception as e:
debug.debug("Couldn't enable scaling:", type(e), e)
self.server = None
self.window = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment