This website works better with JavaScript.
Почетна
Преглед
Помоћ
Пријавите Се
Immanuel
/
sxiv
Прати
1
Волим
0
Креирај огранак
0
Код
Дискусије
0
Захтеви за спајање
0
Издања
0
Вики
Activity
Преглед изворни кода
Thumbnails only get scaled down, fixed issue
#27
master
Bert Münnich
пре 14 година
родитељ
71a7940d74
комит
5034792948
2 измењених фајлова
са
2 додато
и
1 уклоњено
Подељен поглед
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
Makefile
+1
-0
thumbs.c
+ 1
- 1
Makefile
Прегледај датотеку
@@ -1,4 +1,4 @@
VERSION = git-2011110
1
VERSION = git-2011110
5
CC = gcc
CFLAGS = -ansi -Wall -pedantic -O2
+ 1
- 0
thumbs.c
Прегледај датотеку
@@ -267,6 +267,7 @@ bool tns_load(tns_t *tns, int n, const fileinfo_t *file,
zw = (float) THUMB_SIZE / (float) w;
zh = (float) THUMB_SIZE / (float) h;
z = MIN(zw, zh);
z = MIN(z, 1.0);
t->w = z * w;
t->h = z * h;
Write
Preview
Loading…
Откажи
Сачувај