diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2008-08-15 21:18:27 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2008-08-15 21:18:27 +0000 |
| commit | b6b746cd69e8ab7a55e7559c94cb14cff85316df (patch) | |
| tree | 059b92c753427a09d75bc7b9c8744eab0dc82c8f /src/fl_font_win32.cxx | |
| parent | e63c50b2d163bf0d8e110b2f3711d1b74490c483 (diff) | |
Replaced badly named type Fl_FontSize with Fl_Font_Descriptor. This type is only used in the core files and not available to the user.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6162 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_font_win32.cxx')
| -rw-r--r-- | src/fl_font_win32.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fl_font_win32.cxx b/src/fl_font_win32.cxx index a9b677adc..fd79ec8f5 100644 --- a/src/fl_font_win32.cxx +++ b/src/fl_font_win32.cxx @@ -25,7 +25,7 @@ // http://www.fltk.org/str.php // -Fl_FontSize::Fl_FontSize(const char* name, Fl_Fontsize size) { +Fl_Font_Descriptor::Fl_Font_Descriptor(const char* name, Fl_Fontsize size) { int weight = FW_NORMAL; int italic = 0; switch (*name++) { @@ -63,9 +63,9 @@ Fl_FontSize::Fl_FontSize(const char* name, Fl_Fontsize size) { minsize = maxsize = size; } -Fl_FontSize* fl_fontsize; +Fl_Font_Descriptor* fl_fontsize; -Fl_FontSize::~Fl_FontSize() { +Fl_Font_Descriptor::~Fl_Font_Descriptor() { #if HAVE_GL // Delete list created by gl_draw(). This is not done by this code // as it will link in GL unnecessarily. There should be some kind @@ -106,13 +106,13 @@ static Fl_Fontdesc built_in_table[] = { Fl_Fontdesc* fl_fonts = built_in_table; -static Fl_FontSize* find(Fl_Font fnum, Fl_Fontsize size) { +static Fl_Font_Descriptor* find(Fl_Font fnum, Fl_Fontsize size) { Fl_Fontdesc* s = fl_fonts+fnum; if (!s->name) s = fl_fonts; // use 0 if fnum undefined - Fl_FontSize* f; + Fl_Font_Descriptor* f; for (f = s->first; f; f = f->next) if (f->minsize <= size && f->maxsize >= size) return f; - f = new Fl_FontSize(s->name, size); + f = new Fl_Font_Descriptor(s->name, size); f->next = s->first; s->first = f; return f; |
