From 82a2ba2030454b69adbf285a35e7f052ced74c7a Mon Sep 17 00:00:00 2001 From: Kushal K S V S Date: Thu, 29 Jun 2017 03:55:59 +0530 Subject: fixed warning --- tests/make_png/bitmap.c | 2 ++ tests/make_png/make_png.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/make_png/bitmap.c b/tests/make_png/bitmap.c index fdb41a720..282385020 100644 --- a/tests/make_png/bitmap.c +++ b/tests/make_png/bitmap.c @@ -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; diff --git a/tests/make_png/make_png.c b/tests/make_png/make_png.c index ad579356a..169845477 100644 --- a/tests/make_png/make_png.c +++ b/tests/make_png/make_png.c @@ -126,7 +126,7 @@ int main (int argc, char const *argv[]) size, render_type); - for (i = 0; i <50; ++i) + for (i = 0; i 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; -- cgit v1.2.1