瀏覽代碼

Corrected i_alternate, fixes issue #171

master
Bert Münnich 10 年之前
父節點
當前提交
f478385d59
共有 2 個文件被更改,包括 6 次插入4 次删除
  1. +1
    -1
      Makefile
  2. +5
    -3
      main.c

+ 1
- 1
Makefile 查看文件

@@ -1,4 +1,4 @@
VERSION = git-20140820
VERSION = git-20140829

PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man


+ 5
- 3
main.c 查看文件

@@ -314,14 +314,16 @@ end:

void load_image(int new)
{
static int current;

if (new < 0 || new >= filecnt)
return;

win_set_cursor(&win, CURSOR_WATCH);
reset_timeout(slideshow);

if (new != fileidx)
alternate = fileidx;
if (new != current)
alternate = current;

img_close(&img, false);
while (!img_load(&img, &files[new])) {
@@ -332,7 +334,7 @@ void load_image(int new)
new--;
}
files[new].loaded = true;
fileidx = new;
fileidx = current = new;

info.open = false;
open_info();


Loading…
取消
儲存