From 898d2580d3a8c2a4d4e30370cf26e75881850652 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 19 Jan 2017 09:38:12 +0000 Subject: 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 --- src/gl_draw.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3