Remove brain dead -1
This commit is contained in:
parent
89e2f5be91
commit
27b2e0080b
@ -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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user