From 381ea8e4b4c15ef916a692160b50c3491699fe98 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Mon, 22 Jul 2013 11:14:02 +0200 Subject: Update histogram when moving frame slider --- bin/gui/control.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bin/gui/control.c') diff --git a/bin/gui/control.c b/bin/gui/control.c index 74b8312..6327366 100644 --- a/bin/gui/control.c +++ b/bin/gui/control.c @@ -397,10 +397,12 @@ static void update_current_frame (ThreadData *data) { gpointer buffer; - gint index; + guint index; - index = (gint) gtk_adjustment_get_value (data->frame_slider); - buffer = ring_buffer_get_pointer (data->buffer, index); + index = (guint) gtk_adjustment_get_value (data->frame_slider); + ring_buffer_set_current_pointer (data->buffer, index); + + buffer = ring_buffer_get_current_pointer (data->buffer); convert_grayscale_to_rgb (data, buffer); update_pixbuf (data); } -- cgit v1.2.3