summaryrefslogtreecommitdiff
path: root/grc/gui/Constants.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2016-10-12 15:17:09 +0200
committerSebastian Koslowski <koslowski@kit.edu>2016-10-21 09:29:38 +0200
commitea3eaa5f930062fa57568c6132a5930b7399f5f7 (patch)
tree2225a7ad738151b365f06848b488515dcb0bc3a3 /grc/gui/Constants.py
parent1624da7772f1ff57232e2f2024281547d483629c (diff)
grc: respect display scaling for block positions, canvas size and props dialog
Diffstat (limited to 'grc/gui/Constants.py')
-rw-r--r--grc/gui/Constants.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/grc/gui/Constants.py b/grc/gui/Constants.py
index 022564cd77..f3a6df1802 100644
--- a/grc/gui/Constants.py
+++ b/grc/gui/Constants.py
@@ -96,6 +96,8 @@ SCROLL_DISTANCE = 15
# How close the mouse click can be to a line and register a connection select.
LINE_SELECT_SENSITIVITY = 5
+DPI_SCALING = gtk.gdk.screen_get_default().get_resolution() / 96.0
+
def update_font_size(font_size):
global PORT_SEPARATION, BLOCK_FONT, PORT_FONT, PARAM_FONT, FONT_SIZE