From 801125b9a4abfe259eca1437f4a3a36aba9f5052 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sat, 23 Nov 2024 16:01:59 +0100 Subject: Increase clipping stack size (#1139) --- FL/Fl_Graphics_Driver.H | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/FL/Fl_Graphics_Driver.H b/FL/Fl_Graphics_Driver.H index 0adf8ca87..16e15d90a 100644 --- a/FL/Fl_Graphics_Driver.H +++ b/FL/Fl_Graphics_Driver.H @@ -2,7 +2,7 @@ // Declaration of classes Fl_Graphics_Driver, Fl_Scalable_Graphics_Driver, // and Fl_Font_Descriptor for the Fast Light Tool Kit (FLTK). // -// Copyright 2010-2023 by Bill Spitzak and others. +// Copyright 2010-2024 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -52,7 +52,12 @@ typedef void (*Fl_Draw_Image_Cb)(void* data,int x,int y,int w,uchar* buf); struct Fl_Fontdesc; typedef struct _PangoFontDescription PangoFontDescription; -#define FL_REGION_STACK_SIZE 10 +// FIXME: The following constants are deprecated and will be removed in FLTK 1.5.0 +// in favor of dynamic clipping stack allocation. This needs C++11 features. +// See issue #1139: "FL_REGION_STACK_SIZE could be increased" +// and issue #1140: "Fix static array allocation". + +#define FL_REGION_STACK_SIZE 64 #define FL_MATRIX_STACK_SIZE 32 /** -- cgit v1.2.3