[hamster-applet] fixed blurriness
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hamster-applet] fixed blurriness
- Date: Thu, 31 Dec 2009 19:30:39 +0000 (UTC)
commit bce4aa9f760f269a3c86a9cc02dae0d73bd0ccd1
Author: Toms Bauģis <toms baugis gmail com>
Date: Thu Dec 31 19:29:47 2009 +0000
fixed blurriness
hamster/charting.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/hamster/charting.py b/hamster/charting.py
index 0d1f314..cd8f14c 100644
--- a/hamster/charting.py
+++ b/hamster/charting.py
@@ -719,8 +719,8 @@ class HorizontalDayChart(Chart):
bar_x = round((row[0]- start_hour) * factor)
bar_size = round((row[1] - start_hour) * factor - bar_x)
- self.draw_bar(self.graph_x + bar_x + 0.5,
- positions[label][0] + 0.5,
+ self.draw_bar(round(self.graph_x + bar_x),
+ positions[label][0],
bar_size,
positions[label][1],
base_color)
@@ -747,8 +747,8 @@ class HorizontalDayChart(Chart):
self.set_color((255, 255, 255))
- self.context.move_to(self.graph_x + x, self.graph_y)
- self.context.line_to(self.graph_x + x,
+ self.context.move_to(round(self.graph_x + x) + 0.5, self.graph_y)
+ self.context.line_to(round(self.graph_x + x) + 0.5,
last_position[0] + last_position[1])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]