diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2016-11-16 22:32:29 +0000 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2016-11-16 22:32:29 +0000 |
commit | 8bf410744a224f49696be10272aa4164a7fc4701 (patch) | |
tree | 3bd0bea9be36e9b42a2b0695475d28069f1c23b3 | |
parent | 6d8a963c9be88efe71eef814f9e17739de28068c (diff) | |
download | imv-8bf410744a224f49696be10272aa4164a7fc4701.tar.gz |
Reset slideshow timer when image changed via 'x'
When the user hits left/right to change image, the time left until the
slideshow changes images is reset. If the user changes image by closing
the current image, the timer is not reset. This patch resolves that.
-rw-r--r-- | src/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -417,6 +417,8 @@ int main(int argc, char** argv) case SDLK_x: if(!e.key.repeat) { imv_navigator_remove(&nav, imv_navigator_selection(&nav)); + /* reset slideshow delay */ + delay_msec = 0; } break; case SDLK_f: |