Skip to content

Commit

Permalink
reduce excessive stack use in libschrift.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Jan 6, 2024
1 parent 9e7785e commit 57198e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/ZWidget/src/core/schrift/schrift.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 57198e0

Please sign in to comment.