GNOME Bugzilla – Bug 671644
Border overflows not taken in account when drawing Clutter actors in empathy-call
Last modified: 2012-03-09 08:14:42 UTC
Cairo draws borders along paths half on the inside and half on the outside, so if you have a box of 100x100px with a border of 5px the resulting object will occupy 105x105px, so special attention is needed to avoid clipping the 2.5px of border on each side. This happens in nearly all Clutter actors in the empathy call window: video preview highlight box, video preview placeholders, floating bar buttons and the "i" button.
Created attachment 209249 [details] [review] Don't clip overflowing border when drawing rounded rectangles
Review of attachment 209249 [details] [review]: ::: src/empathy-rounded-rectangle.c @@ +121,1 @@ + self = EMPATHY_ROUNDED_RECTANGLE (g_object_new (EMPATHY_TYPE_ROUNDED_RECTANGLE, NULL)); Can't we use the surface-width and surface-height properties? See http://cgit.collabora.com/git/user/cassidy/empathy/log/?h=trivia (I wrote it before reviewing your patch :)
Attachment 209249 [details] pushed as 2ca7e0f - Don't clip overflowing border when drawing rounded rectangles