… | |
… | |
784 | GC gc; |
784 | GC gc; |
785 | |
785 | |
786 | image_width = gdk_pixbuf_get_width (result); |
786 | image_width = gdk_pixbuf_get_width (result); |
787 | image_height = gdk_pixbuf_get_height (result); |
787 | image_height = gdk_pixbuf_get_height (result); |
788 | |
788 | |
789 | if (h_scale == 0) |
789 | if (h_scale == 0 || v_scale == 0) |
|
|
790 | { |
790 | new_pmap_width = min (image_width, target_width); |
791 | new_pmap_width = min (image_width, target_width); |
791 | if (v_scale == 0) |
|
|
792 | new_pmap_height = min (image_height, target_height); |
792 | new_pmap_height = min (image_height, target_height); |
|
|
793 | } |
793 | |
794 | |
794 | if (pixmap) |
795 | if (pixmap) |
795 | { |
796 | { |
796 | if (pmap_width != new_pmap_width |
797 | if (pmap_width != new_pmap_width |
797 | || pmap_height != new_pmap_height |
798 | || pmap_height != new_pmap_height |