Ignore:
Timestamp:
Jan 6, 2005, 1:51:07 AM (18 years ago)
Author:
Sam Hocevar
Message:
  • support for -s / --share
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pwntcha/trunk/src/slashdot.c

    r421 r430  
    2626/* Our macros */
    2727#define FACTOR 1
    28 #define FONTNAME "share/font_slashdot.png" // use with FACTOR = 1
    29 //#define FONTNAME "share/font.png" // use with FACTOR = 2
    30 //#define FONTNAME "share/font_dilated.png" // use with FACTOR = 2
     28#define FONTNAME "font_slashdot.png" // use with FACTOR = 1
     29//#define FONTNAME "font.png" // use with FACTOR = 2
     30//#define FONTNAME "font_dilated.png" // use with FACTOR = 2
    3131static struct image *font = NULL;
    3232
     
    246246    if(!font)
    247247    {
    248         font = image_load(FONTNAME);
     248        char fontname[BUFSIZ];
     249        sprintf(fontname, "%s/%s", share, FONTNAME);
     250        font = image_load(fontname);
    249251        if(!font)
    250252        {
    251             fprintf(stderr, "cannot load font %s\n", FONTNAME);
     253            fprintf(stderr, "cannot load font %s\n", fontname);
    252254            exit(-1);
    253255        }
Note: See TracChangeset for help on using the changeset viewer.