Changeset 383


Ignore:
Timestamp:
Jan 3, 2005, 11:58:23 AM (18 years ago)
Author:
Sam Hocevar
Message:
  • Put font in share/
  • Fixed file headers
Location:
pwntcha/trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • pwntcha/trunk/Makefile.am

    r381 r383  
    77        bootstrap \
    88        ChangeLog \
     9        share/font_dilated_half.png \
    910        $(NULL)
    1011
  • pwntcha/trunk/src/Makefile.am

    r381 r383  
    22
    33bin_PROGRAMS = pwntcha
    4 pwntcha_CFLAGS = $(ADDITIONAL_CFLAGS) -Wall
     4pwntcha_CFLAGS = $(ADDITIONAL_CFLAGS) -Wall -O6
    55pwntcha_LDFLAGS = $(ADDITIONAL_LDFLAGS)
    6 pwntcha_SOURCES = main.c image.c slashdot.c
     6pwntcha_SOURCES = main.c image.c slashdot.c common.h
    77
    88if USE_IMLIB2
  • pwntcha/trunk/src/image.c

    r382 r383  
    1111
    1212#include <stdio.h>
    13 #include <stdint.h>
    1413#include <stdlib.h>
    1514
     
    134133void display_image(struct image *img)
    135134{
    136     char name[BUFSIZ];
    137135#if defined(HAVE_IMLIB2_H)
     136    //char name[BUFSIZ];
    138137    //static int i = 0;
    139138    //sprintf(name, "image%i-%ix%i.png", i++, img->width, img->height);
     
    142141    //fprintf(stderr, "saved to %s\n", name);
    143142#elif defined(HAVE_CV_H)
     143    char name[BUFSIZ];
    144144    sprintf(name, "Image %p (%i x %i)", img, img->width, img->height);
    145145    cvNamedWindow(name, 0);
  • pwntcha/trunk/src/main.c

    r382 r383  
    1111
    1212#include <stdio.h>
    13 #include <stdint.h>
    1413#include <stdlib.h>
    1514
  • pwntcha/trunk/src/slashdot.c

    r382 r383  
    1111
    1212#include <stdio.h>
    13 #include <stdint.h>
    1413#include <stdlib.h>
     14#include <string.h>
    1515#include <math.h>
    1616
     
    2020/* Our macros */
    2121#define FACTOR 1
    22 //#define FONTNAME "font.png" // use with FACTOR = 2
    23 //#define FONTNAME "font_dilated.png" // use with FACTOR = 2
    24 #define FONTNAME "font_dilated_half.png" // use with FACTOR = 1
     22//#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
    2525
    2626/* Global stuff */
     
    605605char * slashdot_decode(char *image)
    606606{
    607     struct image *img, *tmp, *tmp2, *dst;
     607    struct image *img, *tmp, *tmp2;
    608608
    609609    img = load_image(image);
Note: See TracChangeset for help on using the changeset viewer.