diff options
author | Kushal K S V S <kkushal32@gmail.com> | 2017-06-29 03:55:59 +0530 |
---|---|---|
committer | Kushal K S V S <kkushal32@gmail.com> | 2017-07-09 13:20:12 +0530 |
commit | 82a2ba2030454b69adbf285a35e7f052ced74c7a (patch) | |
tree | 956bc86309932895e4199de998b4af98a79b5b43 | |
parent | 2410b6db432649749ae7909960d47ff3e9578ffe (diff) | |
download | freetype2-82a2ba2030454b69adbf285a35e7f052ced74c7a.tar.gz |
fixed warning
-rw-r--r-- | tests/make_png/bitmap.c | 2 | ||||
-rw-r--r-- | 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 <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; |