From 5811131a0afd4d6865396473d7180482f1f6b513 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Tue, 9 Jul 2024 12:42:03 +0600 Subject: [PATCH] fixes --- source/ubinstall-gtk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ubinstall-gtk.c b/source/ubinstall-gtk.c index 5576649..d724d95 100644 --- a/source/ubinstall-gtk.c +++ b/source/ubinstall-gtk.c @@ -234,8 +234,8 @@ int yon_image_resize_from_container(GtkImage *target, GdkPixbuf *pixbuf_unscaled int width = gtk_widget_get_allocated_width(gtk_widget_get_parent(gtk_widget_get_parent(GTK_WIDGET(target)))); int height = gtk_widget_get_allocated_height(gtk_widget_get_parent(gtk_widget_get_parent(GTK_WIDGET(target)))); - int newImgWidthDef = (width <= 217) ? width : width - 217; - int newImgHeightDef = (height <= 217) ? height : height - 120; + int newImgWidthDef = (width <= 50) ? width : width - 50; + int newImgHeightDef = (height <= 50) ? height : height - 30; GdkPixbuf *pixBuf = pixbuf_unscaled; int newImgHeight = (int)(gdk_pixbuf_get_height(pixBuf) / ((double) gdk_pixbuf_get_width(pixBuf) / newImgWidthDef)); if (newImgHeight > newImgHeightDef) {