Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/clock.py
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2012-10-03 18:02:31 (GMT)
committer Gary Martin <gary@garycmartin.com>2012-10-03 18:02:31 (GMT)
commitea138c4e06558322cc0f3ef7ddcc35f7fbaf16f3 (patch)
treee6c342e6ec08ffaf686c9200c71493f541ae95f5 /clock.py
parent56351f08eb1ee845bc8d6dc5e15d3302c1e55e84 (diff)
Stop tick marks exceeding clock face in some areas.
Diffstat (limited to 'clock.py')
-rwxr-xr-xclock.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/clock.py b/clock.py
index 46c95c8..fa78269 100755
--- a/clock.py
+++ b/clock.py
@@ -721,8 +721,8 @@ class ClockFace(gtk.DrawingArea):
sin = math.sin(i * math.pi / 30.0)
cr.move_to(int(self._center_x + (self._radius - inset) * cos),
int(self._center_y + (self._radius - inset) * sin))
- cr.line_to(int(self._center_x + self._radius * cos),
- int(self._center_y + self._radius * sin))
+ cr.line_to(int(self._center_x + (self._radius - 3) * cos),
+ int(self._center_y + (self._radius - 3) * sin))
cr.stroke()
def _draw_nice_background(self):