Changeset 383
- Timestamp:
- Jan 3, 2005, 11:58:23 AM (18 years ago)
- Location:
- pwntcha/trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pwntcha/trunk/Makefile.am
r381 r383 7 7 bootstrap \ 8 8 ChangeLog \ 9 share/font_dilated_half.png \ 9 10 $(NULL) 10 11 -
pwntcha/trunk/src/Makefile.am
r381 r383 2 2 3 3 bin_PROGRAMS = pwntcha 4 pwntcha_CFLAGS = $(ADDITIONAL_CFLAGS) -Wall 4 pwntcha_CFLAGS = $(ADDITIONAL_CFLAGS) -Wall -O6 5 5 pwntcha_LDFLAGS = $(ADDITIONAL_LDFLAGS) 6 pwntcha_SOURCES = main.c image.c slashdot.c 6 pwntcha_SOURCES = main.c image.c slashdot.c common.h 7 7 8 8 if USE_IMLIB2 -
pwntcha/trunk/src/image.c
r382 r383 11 11 12 12 #include <stdio.h> 13 #include <stdint.h>14 13 #include <stdlib.h> 15 14 … … 134 133 void display_image(struct image *img) 135 134 { 136 char name[BUFSIZ];137 135 #if defined(HAVE_IMLIB2_H) 136 //char name[BUFSIZ]; 138 137 //static int i = 0; 139 138 //sprintf(name, "image%i-%ix%i.png", i++, img->width, img->height); … … 142 141 //fprintf(stderr, "saved to %s\n", name); 143 142 #elif defined(HAVE_CV_H) 143 char name[BUFSIZ]; 144 144 sprintf(name, "Image %p (%i x %i)", img, img->width, img->height); 145 145 cvNamedWindow(name, 0); -
pwntcha/trunk/src/main.c
r382 r383 11 11 12 12 #include <stdio.h> 13 #include <stdint.h>14 13 #include <stdlib.h> 15 14 -
pwntcha/trunk/src/slashdot.c
r382 r383 11 11 12 12 #include <stdio.h> 13 #include <stdint.h>14 13 #include <stdlib.h> 14 #include <string.h> 15 15 #include <math.h> 16 16 … … 20 20 /* Our macros */ 21 21 #define FACTOR 1 22 //#define FONTNAME " font.png" // use with FACTOR = 223 //#define FONTNAME " font_dilated.png" // use with FACTOR = 224 #define FONTNAME " font_dilated_half.png" // use with FACTOR = 122 //#define FONTNAME "share/font.png" // use with FACTOR = 2 23 //#define FONTNAME "share/font_dilated.png" // use with FACTOR = 2 24 #define FONTNAME "share/font_dilated_half.png" // use with FACTOR = 1 25 25 26 26 /* Global stuff */ … … 605 605 char * slashdot_decode(char *image) 606 606 { 607 struct image *img, *tmp, *tmp2 , *dst;607 struct image *img, *tmp, *tmp2; 608 608 609 609 img = load_image(image);
Note: See TracChangeset
for help on using the changeset viewer.