Commit 71127218 authored by Jim Nelson's avatar Jim Nelson

#504: Arrow keys move quicker through slideshow by using a 360 thumbnail for...

#504: Arrow keys move quicker through slideshow by using a 360 thumbnail for initial display.  #581: FP compiler 
optimizations now included in release build.
parent 66c3e2c2
......@@ -135,7 +135,7 @@ ifndef CFLAGS
ifdef BUILD_DEBUG
CFLAGS = -g -O0
else
CFLAGS = -g -O2
CFLAGS = -g -O2 -mfpmath=sse -march=nocona
endif
endif
......
......@@ -96,6 +96,25 @@ class SlideshowPage : SinglePhotoPage {
timer.start();
}
private void manual_advance(Thumbnail thumbnail) {
this.thumbnail = thumbnail;
// start with blown-up thumbnail
set_pixbuf(thumbnail.get_photo().get_thumbnail(ThumbnailCache.BIG_SCALE));
// schedule improvement to real photo
Idle.add(on_improvement);
// reset the timer
timer.start();
}
private bool on_improvement() {
set_pixbuf(thumbnail.get_photo().get_pixbuf());
return false;
}
private bool auto_advance() {
if (exiting)
return false;
......@@ -120,12 +139,12 @@ class SlideshowPage : SinglePhotoPage {
case "Left":
case "KP_Left":
on_previous();
manual_advance((Thumbnail) controller.get_previous_item(thumbnail));
break;
case "Right":
case "KP_Right":
on_next();
manual_advance((Thumbnail) controller.get_next_item(thumbnail));
break;
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment