Skip to content

Commit

Permalink
fixup! Isolate GdkPixbuf usage to icon.c
Browse files Browse the repository at this point in the history
  • Loading branch information
tsipinakis committed May 12, 2018
1 parent b7a055a commit 003798a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/icon.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ cairo_surface_t *icon_get_for_notification(const notification *n)
if (w >= h) {
scaled = gdk_pixbuf_scale_simple(pixbuf,
settings.max_icon_size,
(int) ((double) settings.max_icon_size / w * h),
(settings.max_icon_size * h) / w,
GDK_INTERP_BILINEAR);
} else {
scaled = gdk_pixbuf_scale_simple(pixbuf,
(int) ((double) settings.max_icon_size / h * w),
(settings.max_icon_size * w) / h,
settings.max_icon_size,
GDK_INTERP_BILINEAR);
}
Expand Down

0 comments on commit 003798a

Please sign in to comment.