Fix icon size calculation.
This commit is contained in:
@ -85,7 +85,7 @@ eek_gtk_renderer_real_render_key_icon (EekRenderer *self,
|
|||||||
width = gdk_pixbuf_get_width (pixbuf);
|
width = gdk_pixbuf_get_width (pixbuf);
|
||||||
height = gdk_pixbuf_get_height (pixbuf);
|
height = gdk_pixbuf_get_height (pixbuf);
|
||||||
|
|
||||||
if (bounds.width * scale * height > bounds.height * scale * width)
|
if (bounds.width * scale * height < bounds.height * scale * width)
|
||||||
scale *= bounds.width * scale / width;
|
scale *= bounds.width * scale / width;
|
||||||
else
|
else
|
||||||
scale *= bounds.height * scale / height;
|
scale *= bounds.height * scale / height;
|
||||||
|
|||||||
Reference in New Issue
Block a user