summaryrefslogtreecommitdiffstats
path: root/bin/gui/control.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/gui/control.c')
-rw-r--r--bin/gui/control.c13
1 files changed, 10 insertions, 3 deletions
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