3dphotoshoot

diff libs/drawtext/font.c @ 27:3d082c566b53

fixed all the bugs, pc version works
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 18 Jun 2015 04:32:25 +0300
parents d7fe157c402d
children
line diff
     1.1 --- a/libs/drawtext/font.c	Thu Jun 18 03:55:05 2015 +0300
     1.2 +++ b/libs/drawtext/font.c	Thu Jun 18 04:32:25 2015 +0300
     1.3 @@ -472,9 +472,9 @@
     1.4  	}
     1.5  
     1.6  	for(i=0; i<num_pixels; i++) {
     1.7 -		long c = ass_fgetc(fp);
     1.8 +		int c = ass_fgetc(fp);
     1.9  		if(c == -1) {
    1.10 -			fprintf(stderr, "unexpected end of file while reading pixels\n");
    1.11 +			fprintf(stderr, "unexpected end of file while reading pixels (%d/%d)\n", i, num_pixels);
    1.12  			goto err;
    1.13  		}
    1.14  		gmap->pixels[i] = 255 * c / max_pixval;