Remove brain dead -1

This commit is contained in:
Marco Pesenti Gritti 2006-09-17 01:19:36 +02:00
parent 89e2f5be91
commit 27b2e0080b

View File

@ -26,8 +26,8 @@ class Grid:
def convert_from_screen(self, x, y):
factor = Grid.COLS / gtk.gdk.screen_width()
grid_x = round(x * factor) - 1
grid_y = round(y * factor) - 1
grid_x = round(x * factor)
grid_y = round(y * factor)
return [grid_x, grid_y]