diff options
Diffstat (limited to 'apps/plugins/pictureflow/pictureflow.c')
-rw-r--r-- | apps/plugins/pictureflow/pictureflow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c index 65efed72c7..38f24732de 100644 --- a/apps/plugins/pictureflow/pictureflow.c +++ b/apps/plugins/pictureflow/pictureflow.c | |||
@@ -3169,14 +3169,14 @@ static inline void set_current_slide(const int slide_index) | |||
3169 | { | 3169 | { |
3170 | int old_center_index = center_index; | 3170 | int old_center_index = center_index; |
3171 | step = 0; | 3171 | step = 0; |
3172 | center_index = fbound(slide_index, 0, number_of_slides - 1); | 3172 | center_index = fbound(0, slide_index, number_of_slides - 1); |
3173 | if (old_center_index != center_index) | 3173 | if (old_center_index != center_index) |
3174 | { | 3174 | { |
3175 | rb->queue_remove_from_head(&thread_q, EV_WAKEUP); | 3175 | rb->queue_remove_from_head(&thread_q, EV_WAKEUP); |
3176 | rb->queue_post(&thread_q, EV_WAKEUP, 0); | 3176 | rb->queue_post(&thread_q, EV_WAKEUP, 0); |
3177 | } | 3177 | } |
3178 | target = center_index; | 3178 | target = center_index; |
3179 | slide_frame = slide_index << 16; | 3179 | slide_frame = center_index << 16; |
3180 | reset_slides(); | 3180 | reset_slides(); |
3181 | } | 3181 | } |
3182 | 3182 | ||