summaryrefslogtreecommitdiffstats
path: root/bin/gui
diff options
context:
space:
mode:
authorMaria <matveeva.maria@gmail.com>2014-04-16 09:26:07 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2014-04-16 09:45:46 +0200
commit6ec338a0070ebf87a41b789b797f6947f1bd843a (patch)
tree88556e9ab69573edd80a9c7924b7347aac935998 /bin/gui
parentbb8d8f137197857e0e497d5c0b446c1b5f1b7a3e (diff)
downloadlibuca-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.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