fixed warning

This commit is contained in:
Kushal K S V S 2017-06-29 03:55:59 +05:30
parent c84c32d576
commit 838c65dce2
2 changed files with 4 additions and 2 deletions

View File

@ -170,6 +170,8 @@ void Make_PNG(FT_Bitmap* bitmap,char* name,int i,int render_mode){
PIXEL * pixel = Pixel_At (& fruit, x, y);
p = (y * bitmap->pitch ) + x;
value = bitmap->buffer[p];
pixel->red = 255- value;
pixel->green = 255- value;
pixel->blue = 255- value;

View File

@ -126,7 +126,7 @@ int main (int argc, char const *argv[])
size,
render_type);
for (i = 0; i <50; ++i)
for (i = 0; i <face->num_glyphs; ++i)
{
error = FT_Load_Glyph( face,
i,
@ -145,7 +145,7 @@ int main (int argc, char const *argv[])
if (bitmap->width == 0 || bitmap->rows == 0)
{
continue;
continue;
}
FT_Bitmap target;