From d6fda87c3089ca83081b940d5612e5e1827a5a34 Mon Sep 17 00:00:00 2001 From: Allanis Date: Sat, 13 Apr 2013 19:09:34 +0100 Subject: [PATCH] [Fix] resedit: Deprecated warnings. --- utils/resedit/space.py | 16 ++++++++-------- utils/resedit/space.pyc | Bin 10524 -> 10546 bytes 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/utils/resedit/space.py b/utils/resedit/space.py index a27cf15..81d3600 100644 --- a/utils/resedit/space.py +++ b/utils/resedit/space.py @@ -279,17 +279,17 @@ class space: area.window.draw_rectangle(gc, False, 0, 0, ww-1, wh-1) for sys_name, system in self.systems.items(): - sx = float(system["pos"]["x"]) - sy = -float(system["pos"]["y"]) - dx = cx+sx*self.zoom - dy = cy+sy*self.zoom + sx = int(system["pos"]["x"]) + sy = -int(system["pos"]["y"]) + dx = int(cx+sx*self.zoom) + dy = int(cy+sy*self.zoom) # Draw jumps. for jump in system["jumps"]: - jsx = float(self.systems[jump]["pos"]["x"]) - jsy = -float(self.systems[jump]["pos"]["y"]) - jdx = cx+jsx*self.zoom - jdy = cy+jsy*self.zoom + jsx = int(self.systems[jump]["pos"]["x"]) + jsy = -int(self.systems[jump]["pos"]["y"]) + jdx = int(cx+jsx*self.zoom) + jdy = int(cy+jsy*self.zoom) area.window.draw_line(gc, dx, dy, jdx, jdy) diff --git a/utils/resedit/space.pyc b/utils/resedit/space.pyc index 2958a61b46e0215a1c85ba6d4e2e4e513bd80f0e..87b36bf8582cdac0d664224813d0e9d5fb68bba9 100644 GIT binary patch delta 193 zcmbOev?+*<`7d8#X*76`dq6j78U_D}Rfyo)l t3XG1MJC&y}a