summaryrefslogtreecommitdiff
path: root/grc/gui/Utils.py
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2016-10-25 14:09:04 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2016-10-25 14:09:04 -0700
commit66df227f72156ddbc3f8b9321ff507a4e8a91523 (patch)
tree8fbcf4438b59d3fbb329f360837227a6ffa9400b /grc/gui/Utils.py
parenta411404005f3c24c8df51b68946e2cfd69e38d63 (diff)
parenta4514d5c172b2631b856d7bd543c491a02a5c553 (diff)
Merge branch 'maint'
Diffstat (limited to 'grc/gui/Utils.py')
-rw-r--r--grc/gui/Utils.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/grc/gui/Utils.py b/grc/gui/Utils.py
index d85b846b3a..80dcb4283a 100644
--- a/grc/gui/Utils.py
+++ b/grc/gui/Utils.py
@@ -24,7 +24,7 @@ import gobject
from Cheetah.Template import Template
-from Constants import POSSIBLE_ROTATIONS, CANVAS_GRID_SIZE, DPI_SCALING
+from Constants import POSSIBLE_ROTATIONS, CANVAS_GRID_SIZE
def rotate_pixmap(gc, src_pixmap, dst_pixmap, angle=gtk.gdk.PIXBUF_ROTATE_COUNTERCLOCKWISE):
@@ -131,8 +131,3 @@ def align_to_grid(coor, mode=round):
except TypeError:
x = coor
return align(coor)
-
-
-def scale(coor, reverse=False):
- factor = DPI_SCALING if not reverse else 1 / DPI_SCALING
- return tuple(int(x * factor) for x in coor)