[kupfer] ui: x,y coordinates should be integers not floats



commit 29cb633596f9a1aee4cec98aa5233246b9a7614c
Author: Francesco Marella <fmarl paranoici org>
Date:   Sun Nov 7 08:46:29 2010 +0100

    ui: x,y coordinates should be integers not floats

 kupfer/ui/browser.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/ui/browser.py b/kupfer/ui/browser.py
index ae30d9b..7333610 100644
--- a/kupfer/ui/browser.py
+++ b/kupfer/ui/browser.py
@@ -1557,8 +1557,8 @@ class WindowController (pretty.OutputMixin):
 		monitor_nr = screen.get_monitor_at_point(x, y)
 		geo = screen.get_monitor_geometry(monitor_nr)
 		wid, hei = self.window.get_size()
-		midx = geo.x + geo.width / 2.0 - wid / 2.0
-		midy = geo.y + geo.height / 2.0 - hei / 2.0
+		midx = geo.x + geo.width / 2 - wid / 2
+		midy = geo.y + geo.height / 2 - hei / 2
 		self.window.move(midx, midy)
 
 	def _should_recenter_window(self):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]