Merge pull request #8447 from radarhere/imagingft_unused

This commit is contained in:
Hugo van Kemenade 2024-10-07 12:51:25 +03:00 committed by GitHub
commit 026181ed25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -922,10 +922,7 @@ font_render(FontObject *self, PyObject *args) {
width += ceil(stroke_width * 2 + x_start); width += ceil(stroke_width * 2 + x_start);
height += ceil(stroke_width * 2 + y_start); height += ceil(stroke_width * 2 + y_start);
image = PyObject_CallFunction(fill, "ii", width, height); image = PyObject_CallFunction(fill, "ii", width, height);
if (image == Py_None) { if (image == NULL) {
PyMem_Del(glyph_info);
return Py_BuildValue("N(ii)", image, 0, 0);
} else if (image == NULL) {
PyMem_Del(glyph_info); PyMem_Del(glyph_info);
return NULL; return NULL;
} }