From a4514d5c172b2631b856d7bd543c491a02a5c553 Mon Sep 17 00:00:00 2001 From: Johnathan Corgan <johnathan@corganlabs.com> Date: Tue, 25 Oct 2016 14:08:09 -0700 Subject: Revert "Merge remote-tracking branch 'skoslowski/dpi_fix' into maint" This reverts commit afadc5cb5564cb9b6136db046adccde5856edf57, reversing changes made to 915f1b02408a6a4f2ce2ffb2d9336643745aa939. --- grc/gui/Utils.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'grc/gui/Utils.py') 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) -- cgit v1.2.3