diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-07-01 20:14:08 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-07-01 20:14:08 +0000 |
| commit | 526e94341d0a03bd99bbdbdeff7e446e437478c4 (patch) | |
| tree | 1bb3b699e13ee2f94eb256f32712b41860906659 /src/fl_set_font.cxx | |
| parent | 2d30a9e6fa5f7a328c942fe7b0b68908339c9076 (diff) | |
Some patches from Ori Berger to plug some resource leaks and use a
different WIN32 message for threading under Windows.
(didn't include the cleanup or release changes)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_set_font.cxx')
| -rw-r--r-- | src/fl_set_font.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fl_set_font.cxx b/src/fl_set_font.cxx index 2bd3b469f..d3c10a51c 100644 --- a/src/fl_set_font.cxx +++ b/src/fl_set_font.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_set_font.cxx,v 1.5.2.3.2.6 2002/05/25 13:38:25 easysw Exp $" +// "$Id: fl_set_font.cxx,v 1.5.2.3.2.7 2002/07/01 20:14:08 easysw Exp $" // // Font utilities for the Fast Light Tool Kit (FLTK). // @@ -35,7 +35,7 @@ static int table_size; void Fl::set_font(Fl_Font fnum, const char* name) { - if (fnum >= table_size) { + while (fnum >= table_size) { int i = table_size; if (!i) { // don't realloc the built-in table table_size = 2*FL_FREE_FONT; @@ -74,5 +74,5 @@ void Fl::set_font(Fl_Font fnum, Fl_Font from) { const char* Fl::get_font(Fl_Font fnum) {return fl_fonts[fnum].name;} // -// End of "$Id: fl_set_font.cxx,v 1.5.2.3.2.6 2002/05/25 13:38:25 easysw Exp $". +// End of "$Id: fl_set_font.cxx,v 1.5.2.3.2.7 2002/07/01 20:14:08 easysw Exp $". // |
