diff options
Diffstat (limited to 'src/drivers/X11/Fl_X11_Screen_Driver.cxx')
| -rw-r--r-- | src/drivers/X11/Fl_X11_Screen_Driver.cxx | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/drivers/X11/Fl_X11_Screen_Driver.cxx b/src/drivers/X11/Fl_X11_Screen_Driver.cxx index 4fd36edb6..ed8c54dfa 100644 --- a/src/drivers/X11/Fl_X11_Screen_Driver.cxx +++ b/src/drivers/X11/Fl_X11_Screen_Driver.cxx @@ -35,10 +35,6 @@ # include <X11/extensions/Xinerama.h> #endif -#if USE_XDBE -#include <X11/extensions/Xdbe.h> -#endif - # include <X11/Xutil.h> # ifdef __sgi # include <X11/extensions/readdisplay.h> @@ -146,32 +142,13 @@ static int test_visual(XVisualInfo& v, int flags) { // simpler if we can't use colormapped visuals at all: if (v.c_class != StaticColor && v.c_class != TrueColor) return 0; #endif -#if USE_XDBE - if (flags & FL_DOUBLE) { - static XdbeScreenVisualInfo *xdbejunk; - if (!xdbejunk) { - int event_base, error_base; - if (!XdbeQueryExtension(fl_display, &event_base, &error_base)) return 0; - Drawable root = RootWindow(fl_display,fl_screen); - int numscreens = 1; - xdbejunk = XdbeGetVisualInfo(fl_display,&root,&numscreens); - if (!xdbejunk) return 0; - } - for (int j = 0; ; j++) { - if (j >= xdbejunk->count) return 0; - if (xdbejunk->visinfo[j].visual == v.visualid) break; - } - } -#endif return 1; } int Fl_X11_Screen_Driver::visual(int flags) { -#if USE_XDBE == 0 if (flags & FL_DOUBLE) return 0; -#endif open_display(); // always use default if possible: if (test_visual(*fl_visual, flags)) return 1; |
