diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-06-08 13:07:19 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-06-08 13:07:19 +0000 |
| commit | be16fa30279cf6c3147536252943e686f1d7a070 (patch) | |
| tree | cfece2eb36b8e771d3b07dcc333ca0b034e196fe /src/fl_font_mac.cxx | |
| parent | 5d7f42585b49d75e99b6f12bcb4011148a8a4b47 (diff) | |
Make sure fl_size_, fl_font_, and fl_xfont are initialized and used.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2297 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_font_mac.cxx')
| -rw-r--r-- | src/fl_font_mac.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/fl_font_mac.cxx b/src/fl_font_mac.cxx index 69612c1eb..316d56940 100644 --- a/src/fl_font_mac.cxx +++ b/src/fl_font_mac.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_font_mac.cxx,v 1.1.2.6 2002/06/07 19:55:44 easysw Exp $" +// "$Id: fl_font_mac.cxx,v 1.1.2.7 2002/06/08 13:07:19 easysw Exp $" // // MacOS font selection routines for the Fast Light Tool Kit (FLTK). // @@ -125,10 +125,11 @@ static Fl_FontSize* find(int fnum, int size) { //////////////////////////////////////////////////////////////// // Public interface: -int fl_font_; -int fl_size_; +int fl_font_ = 0; +int fl_size_ = 0; void fl_font(int fnum, int size) { + if (fnum == fl_font_ && size == fl_size_) return; fl_font(find(fnum, size)); } @@ -154,5 +155,5 @@ void fl_draw(const char* str, int n, int x, int y) { } // -// End of "$Id: fl_font_mac.cxx,v 1.1.2.6 2002/06/07 19:55:44 easysw Exp $". +// End of "$Id: fl_font_mac.cxx,v 1.1.2.7 2002/06/08 13:07:19 easysw Exp $". // |
