[hamster-applet] peh, rounding the coordinates again. pitty i can't trigger the bug myself



commit 22f01cd0e8998a414eb3215146c93ec07b28b10f
Author: Toms Bauģis <toms baugis gmail com>
Date:   Sat Nov 28 10:35:11 2009 +0000

    peh, rounding the coordinates again. pitty i can't trigger the bug myself

 hamster/graphics.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/hamster/graphics.py b/hamster/graphics.py
index 2bdebb9..79d3446 100644
--- a/hamster/graphics.py
+++ b/hamster/graphics.py
@@ -228,10 +228,10 @@ class SampleArea(Area):
         
         # fill_area is just a shortcut function
         # feel free to use self.context. move_to, line_to and others
-        self.fill_area(self.rect_x,
-                            self.rect_y,
-                            self.rect_width,
-                            self.rect_height, (168, 186, 136))
+        self.fill_area(round(self.rect_x),
+                       round(self.rect_y),
+                       self.rect_width,
+                       self.rect_height, (168, 186, 136))
 
 class BasicWindow:
     # close the window and quit



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