# HG changeset patch # User zas_ # Date 1263735288 0 # Node ID 9a20074dbd8fe9b01d296a8fe5da8188d05a553a # Parent 48cc32388aebfb848bc19ec95b9b33fabb61604d Fix osd zoom level refreshing (it was broken since some times). diff -r 48cc32388aeb -r 9a20074dbd8f src/image-overlay.c --- a/src/image-overlay.c Wed Jan 13 19:49:39 2010 +0000 +++ b/src/image-overlay.c Sun Jan 17 13:34:48 2010 +0000 @@ -321,7 +321,6 @@ else { data = g_strdup(g_hash_table_lookup(vars, name)); - if (data && strcmp(name, "zoom") == 0) imd->overlay_show_zoom = TRUE; if (!data) data = metadata_read_string(imd->image_fd, name, METADATA_FORMATTED); } @@ -865,8 +864,6 @@ { OverlayStateData *osd = data; - osd->imd->overlay_show_zoom = FALSE; - if (osd->show & OSD_SHOW_INFO) { /* redraw when the image was changed, diff -r 48cc32388aeb -r 9a20074dbd8f src/image.c --- a/src/image.c Wed Jan 13 19:49:39 2010 +0000 +++ b/src/image.c Sun Jan 17 13:34:48 2010 +0000 @@ -91,15 +91,6 @@ if (imd->func_update) imd->func_update(imd, imd->data_update); } -static void image_zoom_cb(PixbufRenderer *pr, gdouble zoom, gpointer data) -{ - ImageWindow *imd = data; - - if (imd->title_show_zoom) image_update_title(imd); - if (imd->overlay_show_zoom) image_osd_update(imd); - - image_update_util(imd); -} static void image_complete_util(ImageWindow *imd, gboolean preload) { @@ -140,6 +131,15 @@ if (imd->func_state) imd->func_state(imd, state, imd->data_state); } +static void image_zoom_cb(PixbufRenderer *pr, gdouble zoom, gpointer data) +{ + ImageWindow *imd = data; + + if (imd->title_show_zoom) image_update_title(imd); + image_state_set(imd, IMAGE_STATE_IMAGE); + image_update_util(imd); +} + /* *------------------------------------------------------------------- * misc diff -r 48cc32388aeb -r 9a20074dbd8f src/typedefs.h --- a/src/typedefs.h Wed Jan 13 19:49:39 2010 +0000 +++ b/src/typedefs.h Sun Jan 17 13:34:48 2010 +0000 @@ -440,8 +440,6 @@ gboolean delay_flip; gint orientation; gboolean desaturate; - - gboolean overlay_show_zoom; /* set to true if overlay is showing zoom ratio */ }; #define FILEDATA_MARKS_SIZE 6