Changeset 2318 for pwntcha/trunk/src
- Timestamp:
- Apr 26, 2008, 10:41:43 AM (14 years ago)
- Location:
- pwntcha/trunk/src
- Files:
-
- 27 edited
- 29 moved
Legend:
- Unmodified
- Added
- Removed
-
pwntcha/trunk/src/authimage/Makefile.am
r2317 r2318 1 2 DECODER = authimage 1 3 2 4 noinst_LIBRARIES = libdecoder.a 3 5 4 6 libdecoder_a_SOURCES = decoder.c 5 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. 7 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. -DDECODER=\"$(DECODER)\" 6 8 9 EXTRA_DIST = font.png 10 -
pwntcha/trunk/src/authimage/decoder.c
r2317 r2318 30 30 if(!font) 31 31 { 32 font = font_load_fixed( "font_authimage.png",32 font = font_load_fixed(DECODER, "font.png", 33 33 "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"); 34 34 if(!font) -
pwntcha/trunk/src/clubic/Makefile.am
r2317 r2318 1 2 DECODER = clubic 1 3 2 4 noinst_LIBRARIES = libdecoder.a 3 5 4 6 libdecoder_a_SOURCES = decoder.c 5 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. 7 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. -DDECODER=\"$(DECODER)\" 6 8 9 EXTRA_DIST = font.png 10 -
pwntcha/trunk/src/clubic/decoder.c
r2317 r2318 53 53 if(!font) 54 54 { 55 font = font_load_variable( "font_clubic.png", "0123456789");55 font = font_load_variable(DECODER, "font.png", "0123456789"); 56 56 if(!font) 57 57 exit(1); -
pwntcha/trunk/src/common.h
r2315 r2318 66 66 67 67 /* font operations */ 68 struct font *font_load_fixed(char *file, char *chars);69 struct font *font_load_variable(char *file, char *chars);70 void font_free(struct font * font);68 struct font *font_load_fixed(char const *, char const *, char const *); 69 struct font *font_load_variable(char const *, char const *, char const *); 70 void font_free(struct font *); 71 71 72 72 /* image filters */ -
pwntcha/trunk/src/font.c
r2315 r2318 18 18 #include "common.h" 19 19 20 struct font *font_load_fixed(char *file, char *chars) 20 struct font *font_load_fixed(char const *decoder, char const *file, 21 char const *chars) 21 22 { 22 23 char fontname[BUFSIZ]; … … 25 26 int i; 26 27 27 sprintf(fontname, " %s/%s", share, file);28 sprintf(fontname, "src/%s/%s", decoder, file); 28 29 img = image_load(fontname); 30 if(!img) 31 { 32 sprintf(fontname, "%s/%s/%s", share, decoder, file); 33 img = image_load(fontname); 34 } 29 35 if(!img) 30 36 { … … 51 57 } 52 58 53 struct font *font_load_variable(char *file, char *chars) 59 struct font *font_load_variable(char const *decoder, char const *file, 60 char const *chars) 54 61 { 55 62 char fontname[BUFSIZ]; … … 60 67 int r, g, b; 61 68 62 sprintf(fontname, " %s/%s", share, file);69 sprintf(fontname, "src/%s/%s", decoder, file); 63 70 img = image_load(fontname); 71 if(!img) 72 { 73 sprintf(fontname, "%s/%s/%s", share, decoder, file); 74 img = image_load(fontname); 75 } 64 76 if(!img) 65 77 { -
pwntcha/trunk/src/java/Makefile.am
r2317 r2318 1 2 DECODER = java 1 3 2 4 noinst_LIBRARIES = libdecoder.a 3 5 4 6 libdecoder_a_SOURCES = decoder.c 5 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. 7 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. -DDECODER=\"$(DECODER)\" 6 8 -
pwntcha/trunk/src/linuxfr/Makefile.am
r2317 r2318 1 2 DECODER = linuxfr 1 3 2 4 noinst_LIBRARIES = libdecoder.a 3 5 4 6 libdecoder_a_SOURCES = decoder.c 5 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. 7 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. -DDECODER=\"$(DECODER)\" 6 8 9 EXTRA_DIST = font.png 10 -
pwntcha/trunk/src/linuxfr/decoder.c
r2317 r2318 30 30 if(!font) 31 31 { 32 font = font_load_fixed( "font_linuxfr.png",32 font = font_load_fixed(DECODER, "font.png", 33 33 "abcdefghijklmnopqrstuvwxyz" 34 34 "ABCDEFGHIJKLMNOPQRSTUVWXYZ" -
pwntcha/trunk/src/livejournal/Makefile.am
r2317 r2318 1 2 DECODER = livejournal 1 3 2 4 noinst_LIBRARIES = libdecoder.a 3 5 4 6 libdecoder_a_SOURCES = decoder.c 5 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. 7 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. -DDECODER=\"$(DECODER)\" 6 8 -
pwntcha/trunk/src/livejournal/decoder.c
r2317 r2318 59 59 if(!font) 60 60 { 61 font = font_load_variable( "x_font_freesansbold_32_09az.bmp",61 font = font_load_variable(DECODER, "x_freesansbold_32_09az.bmp", 62 62 "0123456789abcdefghijklmnopqrstuvwxyz"); 63 63 if(!font) -
pwntcha/trunk/src/lmt/Makefile.am
r2317 r2318 1 2 DECODER = lmt 1 3 2 4 noinst_LIBRARIES = libdecoder.a 3 5 4 6 libdecoder_a_SOURCES = decoder.c 5 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. 7 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. -DDECODER=\"$(DECODER)\" 6 8 9 EXTRA_DIST = freesans_24_09AZ.bmp 10 -
pwntcha/trunk/src/lmt/decoder.c
r2317 r2318 56 56 if(!font) 57 57 { 58 font = font_load_variable( "font_freesans_24_09AZ.bmp",58 font = font_load_variable(DECODER, "freesans_24_09AZ.bmp", 59 59 "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"); 60 60 filter_smooth(font->img); -
pwntcha/trunk/src/paypal/Makefile.am
r2317 r2318 1 2 DECODER = paypal 1 3 2 4 noinst_LIBRARIES = libdecoder.a 3 5 4 6 libdecoder_a_SOURCES = decoder.c 5 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. 7 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. -DDECODER=\"$(DECODER)\" 6 8 9 EXTRA_DIST = stencil_23_AZ.bmp stencil_24_AZ.bmp 10 -
pwntcha/trunk/src/paypal/decoder.c
r2317 r2318 48 48 static char *files[] = 49 49 { 50 " font_stencil_23_AZ.bmp", "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",51 " font_stencil_24_AZ.bmp", "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",50 "stencil_23_AZ.bmp", "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", 51 "stencil_24_AZ.bmp", "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", 52 52 }; 53 53 int x, y, i = 0, f; … … 60 60 if(!fonts[f]) 61 61 { 62 fonts[f] = font_load_variable(files[f * 2], files[f * 2 + 1]); 62 fonts[f] = font_load_variable(DECODER, 63 files[f * 2], files[f * 2 + 1]); 63 64 if(!fonts[f]) 64 65 exit(1); -
pwntcha/trunk/src/phpbb/Makefile.am
r2317 r2318 1 2 DECODER = phpbb 1 3 2 4 noinst_LIBRARIES = libdecoder.a 3 5 4 6 libdecoder_a_SOURCES = decoder.c 5 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. 7 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. -DDECODER=\"$(DECODER)\" 6 8 9 EXTRA_DIST = font.png 10 -
pwntcha/trunk/src/phpbb/decoder.c
r2317 r2318 32 32 if(!font) 33 33 { 34 font = font_load_fixed( "font_phpbb.png",34 font = font_load_fixed(DECODER, "font.png", 35 35 "ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789"); 36 36 if(!font) -
pwntcha/trunk/src/scode/Makefile.am
r2317 r2318 1 2 DECODER = scode 1 3 2 4 noinst_LIBRARIES = libdecoder.a 3 5 4 6 libdecoder_a_SOURCES = decoder.c 5 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. 7 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. -DDECODER=\"$(DECODER)\" 6 8 -
pwntcha/trunk/src/slashdot/Makefile.am
r2317 r2318 1 2 DECODER = slashdot 1 3 2 4 noinst_LIBRARIES = libdecoder.a 3 5 4 6 libdecoder_a_SOURCES = decoder.c 5 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. 7 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. -DDECODER=\"$(DECODER)\" 6 8 9 EXTRA_DIST = font.png 10 -
pwntcha/trunk/src/slashdot/decoder.c
r2317 r2318 191 191 if(!font) 192 192 { 193 font = font_load_variable("font_slashdot.png", "abcdefgijkmnpqrstvwxyz"); 193 font = font_load_variable(DECODER, "font.png", 194 "abcdefgijkmnpqrstvwxyz"); 194 195 if(!font) 195 196 exit(1); -
pwntcha/trunk/src/ticketmaster/Makefile.am
r2317 r2318 1 2 DECODER = ticketmaster 1 3 2 4 noinst_LIBRARIES = libdecoder.a 3 5 4 6 libdecoder_a_SOURCES = decoder.c 5 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. 7 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. -DDECODER=\"$(DECODER)\" 6 8 -
pwntcha/trunk/src/tickets/Makefile.am
r2317 r2318 1 2 DECODER = tickets 1 3 2 4 noinst_LIBRARIES = libdecoder.a 3 5 4 6 libdecoder_a_SOURCES = decoder.c 5 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. 7 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. -DDECODER=\"$(DECODER)\" 6 8 9 EXTRA_DIST = font1.png font2.png font3.png font4.png font5.png font6.png font7.png font8.png 10 -
pwntcha/trunk/src/tickets/decoder.c
r2317 r2318 35 35 { 36 36 char buf[BUFSIZ]; 37 sprintf(buf, "font _tickets%i.png", i + 1);38 fonts[i] = font_load_variable( buf, "0123456789");37 sprintf(buf, "font%i.png", i + 1); 38 fonts[i] = font_load_variable(DECODER, buf, "0123456789"); 39 39 if(!fonts[i]) 40 40 exit(-1); -
pwntcha/trunk/src/vbulletin/Makefile.am
r2317 r2318 1 2 DECODER = vbulletin 1 3 2 4 noinst_LIBRARIES = libdecoder.a 3 5 4 6 libdecoder_a_SOURCES = decoder.c 5 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. 7 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. -DDECODER=\"$(DECODER)\" 6 8 9 EXTRA_DIST = font.png 10 -
pwntcha/trunk/src/vbulletin/decoder.c
r2317 r2318 30 30 if(!font) 31 31 { 32 font = font_load_fixed( "font_vbulletin.png",32 font = font_load_fixed(DECODER, "font.png", 33 33 "2346789ABCDEFGHJKLMNPRTWXYZ"); 34 34 if(!font) -
pwntcha/trunk/src/xanga/Makefile.am
r2317 r2318 1 2 DECODER = xanga 1 3 2 4 noinst_LIBRARIES = libdecoder.a 3 5 4 6 libdecoder_a_SOURCES = decoder.c 5 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. 7 libdecoder_a_CPPFLAGS = -I$(srcdir)/.. -DDECODER=\"$(DECODER)\" 6 8 9 EXTRA_DIST = \ 10 comic_24_az_messed.bmp \ 11 comic_32_az.bmp \ 12 freemonobold_24_az.bmp \ 13 freemonobold_32_az.bmp \ 14 freesansbold_32_az.bmp \ 15 freesansbold_36_az_messed.bmp \ 16 x_comic_24_az_messed.bmp \ 17 x_comic_32_az.bmp \ 18 x_freemonobold_24_az.bmp \ 19 x_freemonobold_32_az.bmp \ 20 x_freesansbold_32_az.bmp \ 21 x_freesansbold_36_az_messed.bmp 22 -
pwntcha/trunk/src/xanga/decoder.c
r2317 r2318 121 121 static char *files[] = 122 122 { 123 "x_f ont_freemonobold_32_az.bmp", "abcdefghijklmnopqrstuvwxyz",124 "x_f ont_freemonobold_24_az.bmp", "abcdefghijklmnopqrstuvwxyz",125 "x_f ont_freesansbold_32_az.bmp", "abcdefghijklmnopqrstuvwxyz",126 //"x_f ont_freeserifbold_32_az.bmp", "abcdefghijklmnopqrstuvwxyz",127 "x_ font_comic_32_az.bmp", "abcdefghijklmnopqrstuvwxyz",128 "x_ font_comic_24_az_messed.bmp", "abcdefghijklmnopqrstuvwxyz",129 "x_f ont_freesansbold_36_az_messed.bmp", "abcdefghijklmnopqrstuvwxyz",123 "x_freemonobold_32_az.bmp", "abcdefghijklmnopqrstuvwxyz", 124 "x_freemonobold_24_az.bmp", "abcdefghijklmnopqrstuvwxyz", 125 "x_freesansbold_32_az.bmp", "abcdefghijklmnopqrstuvwxyz", 126 //"x_freeserifbold_32_az.bmp", "abcdefghijklmnopqrstuvwxyz", 127 "x_comic_32_az.bmp", "abcdefghijklmnopqrstuvwxyz", 128 "x_comic_24_az_messed.bmp", "abcdefghijklmnopqrstuvwxyz", 129 "x_freesansbold_36_az_messed.bmp", "abcdefghijklmnopqrstuvwxyz", 130 130 }; 131 131 struct image *tmp; … … 139 139 if(!fonts[f]) 140 140 { 141 fonts[f] = font_load_variable(files[f * 2], files[f * 2 + 1]); 141 fonts[f] = font_load_variable(DECODER, 142 files[f * 2], files[f * 2 + 1]); 142 143 if(!fonts[f]) 143 144 exit(1);
Note: See TracChangeset
for help on using the changeset viewer.