Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
toby committed Apr 27, 2006
1 parent 2caaaaf commit beaca81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ obj_w32/%.o : %.c ; $(MINGW_CC) -o $@ -c $< $(CFLAGS) $(CPPFLAGS)
all : psdparse all : psdparse
clean : ; rm -f psdparse psdparse.exe $(OBJ) $(OBJW32) clean : ; rm -f psdparse psdparse.exe $(OBJ) $(OBJW32)


psdparse : CPPFLAGS += -DDIRSEP=\'/\' -I$(PNGDIR) psdparse : CPPFLAGS += -DDIRSEP="'/'" -I$(PNGDIR)
psdparse : $(OBJ) $(LIBPNGA) psdparse : $(OBJ) $(LIBPNGA)
$(CC) -o $@ $(filter-out %.a,$^) -L$(PNGDIR) -lz -lpng $(CC) -o $@ $(filter-out %.a,$^) -L$(PNGDIR) -lz -lpng


Expand All @@ -65,7 +65,7 @@ psdparse : $(OBJ) $(LIBPNGA)
# psd2png.exe - variant intended for drag'n'drop, that always writes PNGs and asset list # psd2png.exe - variant intended for drag'n'drop, that always writes PNGs and asset list
exe : psdparse.exe psd2png.exe exe : psdparse.exe psd2png.exe


W32FLAGS = -DDIRSEP=\'\\\\\' -I$(PNGDIRW32) -I$(ZLIBDIRW32) W32FLAGS = -DDIRSEP="'\\\\'" -I$(PNGDIRW32) -I$(ZLIBDIRW32)


psdparse.exe : CPPFLAGS += $(W32FLAGS) psdparse.exe : CPPFLAGS += $(W32FLAGS)
psd2png.exe : CPPFLAGS += $(W32FLAGS) -DALWAYS_WRITE_PNG psd2png.exe : CPPFLAGS += $(W32FLAGS) -DALWAYS_WRITE_PNG
Expand Down
1 change: 1 addition & 0 deletions writepng.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ FILE* pngsetupwrite(FILE *psd, char *dir, char *name, int width, int height,
if(h->mode == ModeBitmap) if(h->mode == ModeBitmap)
png_set_invert_mono(png_ptr); png_set_invert_mono(png_ptr);
else if(h->mode == ModeIndexedColor){ else if(h->mode == ModeIndexedColor){
// go get the colour palette
savepos = ftell(psd); savepos = ftell(psd);
fseek(psd,h->colormodepos,SEEK_SET); fseek(psd,h->colormodepos,SEEK_SET);
n = get4B(psd); n = get4B(psd);
Expand Down

0 comments on commit beaca81

Please sign in to comment.