diff options
Diffstat (limited to 'tutorius/overlayer.py')
-rw-r--r-- | tutorius/overlayer.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tutorius/overlayer.py b/tutorius/overlayer.py index 96e9acf..5eb0f49 100644 --- a/tutorius/overlayer.py +++ b/tutorius/overlayer.py @@ -256,6 +256,13 @@ class TextBubble(gtk.Widget): yradius = height/2 width -= self.line_width height -= self.line_width + + # translate by line width to because line is drawn both side of the + # coordinates. here what a line stroke looks like: + # / """""""""" }out of shape + # width | ---------- <-exact coord + # \ .......... }in shape + context.translate(self.line_width/2, self.line_width/2) # # TODO fetch speaker coordinates @@ -428,6 +435,8 @@ class TextBubbleWImg(gtk.Widget): yradius = height/2 width -= self.line_width height -= self.line_width + + context.translate(self.line_width/2, self.line_width/2) # # TODO fetch speaker coordinates |