Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

minor

  • Loading branch information...
commit beaca81bb3f50550b0b4f0fcc7c06a212f4e7f30 1 parent 2caaaaf
toby authored
Showing with 3 additions and 2 deletions.
  1. +2 −2 Makefile
  2. +1 −0  writepng.c
View
4 Makefile
@@ -56,7 +56,7 @@ obj_w32/%.o : %.c ; $(MINGW_CC) -o $@ -c $< $(CFLAGS) $(CPPFLAGS)
all : psdparse
clean : ; rm -f psdparse psdparse.exe $(OBJ) $(OBJW32)
-psdparse : CPPFLAGS += -DDIRSEP=\'/\' -I$(PNGDIR)
+psdparse : CPPFLAGS += -DDIRSEP="'/'" -I$(PNGDIR)
psdparse : $(OBJ) $(LIBPNGA)
$(CC) -o $@ $(filter-out %.a,$^) -L$(PNGDIR) -lz -lpng
@@ -65,7 +65,7 @@ psdparse : $(OBJ) $(LIBPNGA)
# psd2png.exe - variant intended for drag'n'drop, that always writes PNGs and asset list
exe : psdparse.exe psd2png.exe
-W32FLAGS = -DDIRSEP=\'\\\\\' -I$(PNGDIRW32) -I$(ZLIBDIRW32)
+W32FLAGS = -DDIRSEP="'\\\\'" -I$(PNGDIRW32) -I$(ZLIBDIRW32)
psdparse.exe : CPPFLAGS += $(W32FLAGS)
psd2png.exe : CPPFLAGS += $(W32FLAGS) -DALWAYS_WRITE_PNG
View
1  writepng.c
@@ -100,6 +100,7 @@ FILE* pngsetupwrite(FILE *psd, char *dir, char *name, int width, int height,
if(h->mode == ModeBitmap)
png_set_invert_mono(png_ptr);
else if(h->mode == ModeIndexedColor){
+ // go get the colour palette
savepos = ftell(psd);
fseek(psd,h->colormodepos,SEEK_SET);
n = get4B(psd);
Please sign in to comment.
Something went wrong with that request. Please try again.