diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1999-01-04 19:25:40 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1999-01-04 19:25:40 +0000 |
| commit | b95db33f2cbd30213cadd4859f567e1dae32ef47 (patch) | |
| tree | a28848521b20e06870490ebacf7bd22e3aa6dedc /src/fl_font.cxx | |
| parent | ea2cbbd5530915c508e86fed9a437adb0b2149f8 (diff) | |
Lots of changes:
- Added #defines for Visual C++ to speed up compiles.
- Added FLTK.DLL project to visualc directory.
- Added editor project to visualc directory.
- Added icon() method to Fl_Window class.
- Implemented xclass() method for WIN32.
- Fixed extern declaration of fl_send_extra_move in Fl_Menu_Window.cxx.
- scandir_win32.c needed to include <stdlib.h>.
- Added fix from Bill for fl_width() bug.
- Updated fix for Fl_Input to default to FL_DOWN_BOX.
- Added visible() check for children of Fl_Pack.
- Added WinMain() function to library.
- Now show console window in debug mode.
- Fixed demo.menu and demo.cxx to work under WIN32.
git-svn-id: file:///fltk/svn/fltk/trunk@180 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_font.cxx')
| -rw-r--r-- | src/fl_font.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fl_font.cxx b/src/fl_font.cxx index 63a2d33d3..883f15c24 100644 --- a/src/fl_font.cxx +++ b/src/fl_font.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_font.cxx,v 1.7 1998/12/07 13:36:26 mike Exp $" +// "$Id: fl_font.cxx,v 1.8 1999/01/04 19:25:05 mike Exp $" // // Font selection code for the Fast Light Tool Kit (FLTK). // @@ -272,7 +272,7 @@ double fl_width(uchar c) { int a = fl_xfont->min_char_or_byte2; int b = fl_xfont->max_char_or_byte2 - a; int x = c-a; - if (x >= 0 && x <= b) return p[c].width; + if (x >= 0 && x <= b) return p[x].width; } return fl_xfont->min_bounds.width; } @@ -292,5 +292,5 @@ void fl_draw(const char* str, int x, int y) { #endif // -// End of "$Id: fl_font.cxx,v 1.7 1998/12/07 13:36:26 mike Exp $". +// End of "$Id: fl_font.cxx,v 1.8 1999/01/04 19:25:05 mike Exp $". // |
