From 57198e02325fca3593531937dc090e9792235f53 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 6 Jan 2024 14:43:37 +0100 Subject: [PATCH] reduce excessive stack use in libschrift. --- libraries/ZWidget/src/core/schrift/schrift.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/ZWidget/src/core/schrift/schrift.cpp b/libraries/ZWidget/src/core/schrift/schrift.cpp index 0febb86c0..3b2594135 100644 --- a/libraries/ZWidget/src/core/schrift/schrift.cpp +++ b/libraries/ZWidget/src/core/schrift/schrift.cpp @@ -1548,7 +1548,7 @@ render_outline(Outline *outl, double transform[6], SFT_Image image) numPixels = (unsigned int) image.width * (unsigned int) image.height; - STACK_ALLOC(cells, Cell, 128 * 128, numPixels); + STACK_ALLOC(cells, Cell, 32 * 32, numPixels); if (!cells) { return -1; }