From 0c0ce4844c9746cf0f3755de852cdd69f5f1204e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 24 Oct 2018 07:07:57 +0530 Subject: [PATCH] Dont use deprecated FT_Bitmap_New --- kitty/freetype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/freetype.c b/kitty/freetype.c index a0aca4a13..564c75d0d 100644 --- a/kitty/freetype.c +++ b/kitty/freetype.c @@ -236,7 +236,7 @@ load_glyph(Face *self, int glyph_index, int load_type) { // Embedded bitmap glyph? if (self->face->glyph->bitmap.pixel_mode == FT_PIXEL_MODE_MONO && load_type != FT_LOAD_DEFAULT) { FT_Bitmap bitmap; - FT_Bitmap_New(&bitmap); + FT_Bitmap_Init(&bitmap); // This also sets pixel_mode to FT_PIXEL_MODE_GRAY so we don't have to error = FT_Bitmap_Convert(library, &self->face->glyph->bitmap, &bitmap, 1);