summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKushal K S V S <kkushal32@gmail.com>2017-06-29 03:55:59 +0530
committerKushal K S V S <kkushal32@gmail.com>2017-06-29 03:55:59 +0530
commite771ac9e0eccc229706c540c31e289c7ac102120 (patch)
tree33e9048f54a348da8cfaec493e9b95fea9892c4e
parentc1f8256354df6951f78dc3f2bcf6805f78775565 (diff)
downloadfreetype2-e771ac9e0eccc229706c540c31e289c7ac102120.tar.gz
fixed warning
-rw-r--r--new/bitmap.c2
-rw-r--r--new/make_png.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/new/bitmap.c b/new/bitmap.c
index fdb41a720..282385020 100644
--- a/new/bitmap.c
+++ b/new/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/new/make_png.c b/new/make_png.c
index ad579356a..169845477 100644
--- a/new/make_png.c
+++ b/new/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;