From 38c947bd093c0edb1eb746911150574fa4a0fb2f Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Sat, 5 May 2001 23:39:01 +0000 Subject: Compiling with -DBOXX_BUGS will work around some problems with the newest X drivers that BoXX delivers, the problems all affect use of Overlays for normal X drawing and OpenGL drawing. Normal compilation is unchanged. The file chooser buttons use user_data() rather than the label to decide what to do, allowing the label to be somewhat cleaner. Selection color on X changed to blue, to match what happens on Windows now. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1452 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_overlay_visual.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/fl_overlay_visual.cxx') diff --git a/src/fl_overlay_visual.cxx b/src/fl_overlay_visual.cxx index 42a38d5c8..8a14c1a56 100644 --- a/src/fl_overlay_visual.cxx +++ b/src/fl_overlay_visual.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_overlay_visual.cxx,v 1.4.2.3 2001/01/22 15:13:41 easysw Exp $" +// "$Id: fl_overlay_visual.cxx,v 1.4.2.4 2001/05/05 23:39:01 spitzak Exp $" // // X overlay support for the Fast Light Tool Kit (FLTK). // @@ -75,8 +75,8 @@ XVisualInfo *fl_find_overlay_visual() { templt.visualid = overlayInfo[i].overlay_visual; int num; XVisualInfo *v1=XGetVisualInfo(fl_display, VisualIDMask, &templt, &num); - if (v1->screen == fl_screen && - !v1->red_mask && (!v || v1->depth >= v->depth && v1->depth <= 8)) { + if (v1->screen == fl_screen && v1->c_class == PseudoColor + && (!v || v1->depth >= v->depth && v1->depth <= 8)) { if (v) XFree((char*)v); v = v1; fl_transparent_pixel = overlayInfo[i].value; @@ -92,12 +92,12 @@ XVisualInfo *fl_find_overlay_visual() { } } XFree((char*)overlayInfo); - // printf("overlay visual %d selected\n", fl_overlay_visual->visualid); + //printf("overlay visual %ld selected\n", fl_overlay_visual->visualid); return fl_overlay_visual; } #endif // -// End of "$Id: fl_overlay_visual.cxx,v 1.4.2.3 2001/01/22 15:13:41 easysw Exp $". +// End of "$Id: fl_overlay_visual.cxx,v 1.4.2.4 2001/05/05 23:39:01 spitzak Exp $". // -- cgit v1.2.3