Browse Source

Increase clipping stack size (#1139)

pull/1143/head
Albrecht Schlosser 7 months ago
parent
commit
801125b9a4
  1. 9
      FL/Fl_Graphics_Driver.H

9
FL/Fl_Graphics_Driver.H

@ -2,7 +2,7 @@
// Declaration of classes Fl_Graphics_Driver, Fl_Scalable_Graphics_Driver, // Declaration of classes Fl_Graphics_Driver, Fl_Scalable_Graphics_Driver,
// and Fl_Font_Descriptor for the Fast Light Tool Kit (FLTK). // 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 // 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 // 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; struct Fl_Fontdesc;
typedef struct _PangoFontDescription PangoFontDescription; 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 #define FL_MATRIX_STACK_SIZE 32
/** /**

Loading…
Cancel
Save