summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2017-01-19 09:38:12 +0000
committerManolo Gouy <Manolo>2017-01-19 09:38:12 +0000
commit898d2580d3a8c2a4d4e30370cf26e75881850652 (patch)
tree0871a686d26abdc2b4bffd543539687cc5824fd1 /src
parentebae29222d9d1c4c40722270897f851b19605b3e (diff)
Remove USE_OksiD_style_GL_font_selection preprocessor variable because it is equivalent to !USE_XFT
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12164 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/gl_draw.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gl_draw.cxx b/src/gl_draw.cxx
index 38ec4bf98..8f797b0ac 100644
--- a/src/gl_draw.cxx
+++ b/src/gl_draw.cxx
@@ -46,7 +46,6 @@
#if USE_XFT
# define GENLISTSIZE 256
#else
-# define USE_OksiD_style_GL_font_selection 1 // Most X11 hosts except XFT
# define GENLISTSIZE 0x10000
#endif // USE_XFT
@@ -252,7 +251,7 @@ void gl_color(Fl_Color i) {
void Fl_X11_Gl_Window_Driver::gl_bitmap_font(Fl_Font_Descriptor *fl_fontsize) {
if (!fl_fontsize->listbase) {
-#ifdef USE_OksiD_style_GL_font_selection
+#if !USE_XFT
fl_fontsize->listbase = glGenLists(GENLISTSIZE);
#else // Fltk-1.1.8 style GL font selection
// FIXME: warning Ideally, for XFT, we really need a glXUseXftFont implementation here...
@@ -266,7 +265,7 @@ void Fl_X11_Gl_Window_Driver::gl_bitmap_font(Fl_Font_Descriptor *fl_fontsize) {
int count = font->max_char_or_byte2-base+1;
fl_fontsize->listbase = glGenLists(GENLISTSIZE);
glXUseXFont(font->fid, base, count, fl_fontsize->listbase+base);
-#endif // USE_OksiD_style_GL_font_selection
+#endif // !USE_XFT
}
glListBase(fl_fontsize->listbase);
}