summaryrefslogtreecommitdiff
path: root/FL/Fl_Chart.H
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1999-02-01 20:15:00 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1999-02-01 20:15:00 +0000
commit68823231727a8aef4ae10895da495f1cad61bc33 (patch)
tree116102582791734290b6854abe63f4d5b0374cd1 /FL/Fl_Chart.H
parent468391363b9ca2e5a39e706cfc6b8dd43e4db983 (diff)
Updated Fl_Chart to allocate entries dynamically. The previous "scrolling"
behavior can be restored by calling Fl_Chart::maxsize(), otherwise entries can be added until you run out of memory. git-svn-id: file:///fltk/svn/fltk/trunk@262 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Chart.H')
-rw-r--r--FL/Fl_Chart.H7
1 files changed, 4 insertions, 3 deletions
diff --git a/FL/Fl_Chart.H b/FL/Fl_Chart.H
index 31d16b104..8750f7056 100644
--- a/FL/Fl_Chart.H
+++ b/FL/Fl_Chart.H
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Chart.H,v 1.4 1999/01/07 19:16:52 mike Exp $"
+// "$Id: Fl_Chart.H,v 1.5 1999/02/01 20:14:58 mike Exp $"
//
// Forms chart header file for the Fast Light Tool Kit (FLTK).
//
@@ -53,7 +53,8 @@ struct FL_CHART_ENTRY {
class Fl_Chart : public Fl_Widget {
int numb;
int maxnumb;
- FL_CHART_ENTRY entries[FL_CHART_MAX+1];
+ int sizenumb;
+ FL_CHART_ENTRY *entries;
double min,max;
uchar autosize_;
uchar textfont_,textsize_,textcolor_;
@@ -83,5 +84,5 @@ public:
#endif
//
-// End of "$Id: Fl_Chart.H,v 1.4 1999/01/07 19:16:52 mike Exp $".
+// End of "$Id: Fl_Chart.H,v 1.5 1999/02/01 20:14:58 mike Exp $".
//