Changeset 421 for pwntcha/trunk/src/phpbb.c
- Timestamp:
- Jan 5, 2005, 1:18:49 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pwntcha/trunk/src/phpbb.c
r418 r421 20 20 /* Our macros */ 21 21 #define FONTNAME "share/font_phpbb.png" 22 static struct image *font = NULL; 22 23 23 24 /* Main function */ … … 27 28 char *result; 28 29 struct image *tmp1, *tmp2, *tmp3; 29 struct image *font = image_load(FONTNAME);30 30 int x, y, i = 0; 31 31 int r, g, b; … … 35 35 if(!font) 36 36 { 37 fprintf(stderr, "cannot load font %s\n", FONTNAME); 38 exit(-1); 37 font = image_load(FONTNAME); 38 if(!font) 39 { 40 fprintf(stderr, "cannot load font %s\n", FONTNAME); 41 exit(-1); 42 } 39 43 } 40 44 … … 126 130 image_free(tmp2); 127 131 image_free(tmp3); 128 image_free(font);129 132 130 133 return result;
Note: See TracChangeset
for help on using the changeset viewer.