From b6b746cd69e8ab7a55e7559c94cb14cff85316df Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 15 Aug 2008 21:18:27 +0000 Subject: 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 --- src/fl_font_mac.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/fl_font_mac.cxx') diff --git a/src/fl_font_mac.cxx b/src/fl_font_mac.cxx index e58a872cb..0914b1498 100644 --- a/src/fl_font_mac.cxx +++ b/src/fl_font_mac.cxx @@ -27,7 +27,7 @@ #include -Fl_FontSize::Fl_FontSize(const char* name, Fl_Fontsize Size) { +Fl_Font_Descriptor::Fl_Font_Descriptor(const char* name, Fl_Fontsize Size) { next = 0; # if HAVE_GL listbase = 0; @@ -114,9 +114,9 @@ Fl_FontSize::Fl_FontSize(const char* name, Fl_Fontsize Size) { #endif } -Fl_FontSize* fl_fontsize = 0L; +Fl_Font_Descriptor* fl_fontsize = 0L; -Fl_FontSize::~Fl_FontSize() { +Fl_Font_Descriptor::~Fl_Font_Descriptor() { /* #if HAVE_GL // ++ todo: remove OpenGL font alocations @@ -221,7 +221,7 @@ UniChar *fl_macToUtf16(const char *txt, int len) Fl_Fontdesc* fl_fonts = built_in_table; -void fl_font(Fl_FontSize* s) { +void fl_font(Fl_Font_Descriptor* s) { fl_fontsize = s; #ifdef __APPLE_QD__ if (fl_window) SetPort( GetWindowPort(fl_window) ); @@ -245,13 +245,13 @@ void fl_font(Fl_FontSize* s) { #endif } -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; -- cgit v1.2.3