summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-bg.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmate-desktop/mate-bg.c')
-rw-r--r--libmate-desktop/mate-bg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmate-desktop/mate-bg.c b/libmate-desktop/mate-bg.c
index 647d38f..64c8d6a 100644
--- a/libmate-desktop/mate-bg.c
+++ b/libmate-desktop/mate-bg.c
@@ -2369,12 +2369,14 @@ get_pixbuf_for_size (MateBG *bg,
if (show) {
double alpha;
+ double timeout;
Slide *slide;
slideshow_ref (show);
slide = get_current_slide (show, &alpha);
- time_until_next_change = (guint)get_slide_timeout (slide);
+ timeout = get_slide_timeout (slide);
+ time_until_next_change = (guint) timeout;
if (slide->fixed) {
FileSize *size = find_best_size (slide->file1,
best_width, best_height);