summaryrefslogtreecommitdiff
path: root/src/Fl_x.cxx
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2000-01-23 01:56:42 +0000
committerBill Spitzak <spitzak@gmail.com>2000-01-23 01:56:42 +0000
commitbe12eee3e5aab53510a5d8f0de7825586807b5ba (patch)
treed23149d409748ccd93d646eef5612e72eedc88e6 /src/Fl_x.cxx
parenteb9472f8d3bb3498d80f8a26e9fee79c7350903d (diff)
If compiled with USE_COLORMAP=0 it will always try to find a TrueColor
visual on the X display, rather than failing if the default is not TrueColor. This does not affect any normal compilation because USE_COLORMAP is defaulted to 1. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@993 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_x.cxx')
-rw-r--r--src/Fl_x.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index 44909be2e..966f6ca3e 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_x.cxx,v 1.24.2.9 2000/01/11 08:19:59 bill Exp $"
+// "$Id: Fl_x.cxx,v 1.24.2.10 2000/01/23 01:56:42 bill Exp $"
//
// X specific code for the Fast Light Tool Kit (FLTK).
//
@@ -271,6 +271,10 @@ void fl_open_display() {
templt.visualid = XVisualIDFromVisual(DefaultVisual(fl_display,fl_screen));
fl_visual = XGetVisualInfo(fl_display, VisualIDMask, &templt, &num);
fl_colormap = DefaultColormap(fl_display,fl_screen);
+
+#if !USE_COLORMAP
+ Fl::visual(FL_RGB);
+#endif
}
void fl_close_display() {
@@ -873,5 +877,5 @@ void Fl_Window::make_current() {
#endif
//
-// End of "$Id: Fl_x.cxx,v 1.24.2.9 2000/01/11 08:19:59 bill Exp $".
+// End of "$Id: Fl_x.cxx,v 1.24.2.10 2000/01/23 01:56:42 bill Exp $".
//