summaryrefslogtreecommitdiff
path: root/src/fl_font.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1998-12-02 15:53:22 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1998-12-02 15:53:22 +0000
commit00422021c102c3134c2dc9d6a36b3117409089fa (patch)
tree8e4d20a26388898db685f9c4ae103a634adef7ad /src/fl_font.cxx
parent2af9c8eba6ccb501c32999073fd230c7199c2845 (diff)
More font magic from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@111 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_font.cxx')
-rw-r--r--src/fl_font.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fl_font.cxx b/src/fl_font.cxx
index 8fa805f8f..09917a28c 100644
--- a/src/fl_font.cxx
+++ b/src/fl_font.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: fl_font.cxx,v 1.5 1998/12/02 15:51:35 mike Exp $"
+// "$Id: fl_font.cxx,v 1.6 1998/12/02 15:53:22 mike Exp $"
//
// Font selection code for the Fast Light Tool Kit (FLTK).
//
@@ -50,7 +50,7 @@ Fl_FontSize::Fl_FontSize(const char* name) {
#endif
}
-Fl_FontSize* fl_current_xfont;
+Fl_FontSize* fl_fontsize;
Fl_FontSize::~Fl_FontSize() {
#if HAVE_GL
@@ -64,7 +64,7 @@ Fl_FontSize::~Fl_FontSize() {
// glDeleteLists(listbase+base,size);
// }
#endif
- if (this == fl_current_xfont) fl_current_xfont = 0;
+ if (this == fl_fontsize) fl_fontsize = 0;
XFreeFont(fl_display, font);
}
@@ -223,8 +223,8 @@ void fl_font(int fnum, int size) {
if (fnum == fl_font_ && size == fl_size_) return;
fl_font_ = fnum; fl_size_ = size;
Fl_FontSize* f = find(fnum, size);
- if (f != fl_current_xfont) {
- fl_current_xfont = f;
+ if (f != fl_fontsize) {
+ fl_fontsize = f;
fl_xfont = f->font;
font_gc = 0;
}
@@ -292,5 +292,5 @@ void fl_draw(const char* str, int x, int y) {
#endif
//
-// End of "$Id: fl_font.cxx,v 1.5 1998/12/02 15:51:35 mike Exp $".
+// End of "$Id: fl_font.cxx,v 1.6 1998/12/02 15:53:22 mike Exp $".
//