From 6ec338a0070ebf87a41b789b797f6947f1bd843a Mon Sep 17 00:00:00 2001 From: Maria Date: Wed, 16 Apr 2014 09:26:07 +0200 Subject: Fixed zoom --- bin/gui/control.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'bin/gui') diff --git a/bin/gui/control.c b/bin/gui/control.c index b02c42d..1cb4dab 100644 --- a/bin/gui/control.c +++ b/bin/gui/control.c @@ -1002,9 +1002,16 @@ on_download_button_clicked (GtkWidget *widget, ThreadData *data) static void update_zoomed_pixbuf (ThreadData *data) { - update_pixbuf_dimensions (data); - up_and_down_scale (data, uca_ring_buffer_peek_pointer (data->buffer)); - update_pixbuf (data); + if (data->state == RUNNING) { + up_and_down_scale (data, uca_ring_buffer_peek_pointer (data->buffer)); + update_pixbuf (data); + update_pixbuf_dimensions (data); + } + else { + update_pixbuf_dimensions (data); + up_and_down_scale (data, uca_ring_buffer_peek_pointer (data->buffer)); + update_pixbuf (data); + } } static void -- cgit v1.2.3