summaryrefslogtreecommitdiff
path: root/src/fl_font_mac.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2008-08-15 21:18:27 +0000
committerMatthias Melcher <fltk@matthiasm.com>2008-08-15 21:18:27 +0000
commitb6b746cd69e8ab7a55e7559c94cb14cff85316df (patch)
tree059b92c753427a09d75bc7b9c8744eab0dc82c8f /src/fl_font_mac.cxx
parente63c50b2d163bf0d8e110b2f3711d1b74490c483 (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_mac.cxx')
-rw-r--r--src/fl_font_mac.cxx14
1 files changed, 7 insertions, 7 deletions
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 <config.h>
-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;