diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2016-10-24 17:07:14 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2016-10-24 17:07:14 -0700 |
commit | be6aaf488da426d864a9d1d04b22627a12ff0c4e (patch) | |
tree | e72c3fa76c03725d45af9551ba2ff564e642288d /grc/gui/Constants.py | |
parent | b890cc4a5c51d46753068fb91ab68f3ecfa726db (diff) | |
parent | a411404005f3c24c8df51b68946e2cfd69e38d63 (diff) |
Merge branch 'master' into next
Diffstat (limited to 'grc/gui/Constants.py')
-rw-r--r-- | grc/gui/Constants.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/grc/gui/Constants.py b/grc/gui/Constants.py index 6a7b54dffa..7dc6d6e15b 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 |