diff options
author | Maria <matveeva.maria@gmail.com> | 2014-04-16 09:26:07 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2014-04-16 09:45:46 +0200 |
commit | 6ec338a0070ebf87a41b789b797f6947f1bd843a (patch) | |
tree | 88556e9ab69573edd80a9c7924b7347aac935998 /bin/gui | |
parent | bb8d8f137197857e0e497d5c0b446c1b5f1b7a3e (diff) | |
download | libuca-6ec338a0070ebf87a41b789b797f6947f1bd843a.tar.gz libuca-6ec338a0070ebf87a41b789b797f6947f1bd843a.tar.bz2 libuca-6ec338a0070ebf87a41b789b797f6947f1bd843a.tar.xz libuca-6ec338a0070ebf87a41b789b797f6947f1bd843a.zip |
Fixed zoom
Diffstat (limited to 'bin/gui')
-rw-r--r-- | bin/gui/control.c | 13 |
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 |