📄 pngquant-1.0.diff
字号:
diff -Naur pngquant-1.0.original/Makefile.unx pngquant-1.0/Makefile.unx--- pngquant-1.0.original/Makefile.unx 2002-10-22 10:54:15.000000000 -0700+++ pngquant-1.0/Makefile.unx 2002-10-22 11:00:49.000000000 -0700@@ -3,17 +3,9 @@ CC=gcc -PNGINC = ../libpng-PNGLIB = ../libpng+CFLAGS = -O3 -Wall -funroll-loops -fomit-frame-pointer -ZINC = ../zlib-ZLIB = ../zlib--CFLAGS = -O3 -Wall -I. -I$(PNGINC) -I$(ZINC) -funroll-loops -fomit-frame-pointer--#LDFLAGS = -L$(PNGLIB) -lpng -L$(ZLIB) -lz -lm-LDFLAGS = $(PNGLIB)/libpng.a -L$(ZLIB) -lz -lm-#LDFLAGS = $(PNGLIB)/libpng.a $(ZLIB)/libz.a -lm+LDFLAGS = -lpng -lz -lm OBJS = pngquant.o rwpng.o diff -Naur pngquant-1.0.original/pngquant.c pngquant-1.0/pngquant.c--- pngquant-1.0.original/pngquant.c 2002-10-22 10:54:15.000000000 -0700+++ pngquant-1.0/pngquant.c 2002-10-22 10:55:56.000000000 -0700@@ -620,9 +620,10 @@ fflush(stderr); } for (top_idx = newcolors-1, bot_idx = x = 0; x < newcolors; ++x) {- if (PAM_GETA(acolormap[x].acolor) == maxval)- remap[x] = top_idx--;- else+ /* REALmagic France patch. We want color palette and trans palette to have the */+ /* same number of entries. if (PAM_GETA(acolormap[x].acolor) == maxval) */+ /* remap[x] = top_idx--; */+ /* else */ remap[x] = bot_idx++; } if (verbose) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -