소스 검색

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();


||||||
x
 
000:0
불러오는 중...
취소
저장