From 28e58ba0dbf30a4a28465f460c67e1c4337bd3a4 Mon Sep 17 00:00:00 2001 From: nirav Date: Mon, 3 Sep 2018 23:38:29 +0530 Subject: Fixed zoom --- image.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'image.h') diff --git a/image.h b/image.h index d82fd74..3771790 100644 --- a/image.h +++ b/image.h @@ -13,11 +13,11 @@ enum scale_mode { GtkWidget *image; GdkPixbuf *pixbuf; GdkPixbuf *curr_pixbuf; -int pixbuf_width, pixbuf_height; +int pixbuf_width, pixbuf_height, curr_pixbuf_width, curr_pixbuf_height; double aspect_ratio; double curr_zoom; -GtkWidget* new_image(); +GtkWidget *new_image(); int load_image(char *file_name, int win_width, int win_height); void fit_image(int win_width, int win_height); void zoom(int type); -- cgit v1.2.3