From de8ba933e54400155bd4bdfd4080db30577bfcc8 Mon Sep 17 00:00:00 2001 From: Fahad Al-Saidi Date: Tue, 13 Dec 2016 12:37:27 +0400 Subject: [PATCH] fix windows build --- _imagingft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_imagingft.c b/_imagingft.c index 948854b6d..e664ff6b0 100644 --- a/_imagingft.c +++ b/_imagingft.c @@ -487,6 +487,7 @@ failed: FT_GlyphSlot glyph; FT_Bool kerning = FT_HAS_KERNING(self->face); FT_UInt last_index = 0; + int i; if (features != Py_None || dir != NULL) PyErr_SetString(PyExc_KeyError, "setting text direction or font features is not supported without libraqm"); @@ -515,7 +516,6 @@ failed: load_flags = FT_LOAD_RENDER|FT_LOAD_NO_BITMAP; if (mask) load_flags |= FT_LOAD_TARGET_MONO; - int i; for (i = 0; font_getchar(string, i, &ch); i++) { (*glyph_info)[i].index = FT_Get_Char_Index(self->face, ch); error = FT_Load_Glyph(self->face, (*glyph_info)[i].index, load_flags);