Commit 29fed9c5 authored by Julian Sparber's avatar Julian Sparber

Avatar: fix #24 avatar is cut off

parent 51744ffa
......@@ -101,6 +101,11 @@ public class Contacts.Avatar : DrawingArea {
}
private void draw_cached_avatar (Cairo.Context cr) {
if (size != display_size) {
double scale = (double) display_size / (double) size;
cr.scale(scale, scale);
}
Gdk.cairo_set_source_pixbuf (cr, this.cache, 0, 0);
cr.paint ();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment