diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-11-23 16:01:59 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-11-23 16:01:59 +0100 |
| commit | 801125b9a4abfe259eca1437f4a3a36aba9f5052 (patch) | |
| tree | 9fb05d56d7eef58cecc752c161d46139ed300119 /FL/Fl_Graphics_Driver.H | |
| parent | cef968e8a0bec755e7cd7f67556570ebec09f85b (diff) | |
Increase clipping stack size (#1139)
Diffstat (limited to 'FL/Fl_Graphics_Driver.H')
| -rw-r--r-- | FL/Fl_Graphics_Driver.H | 9 |
1 files 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 /** |
