From ffa4c7f3414944869016497a4f560c24b9d8b3e9 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 30 Jun 2002 09:53:52 +0000 Subject: sync with bb. mostly cleanups in Window.cc --- src/BaseDisplay.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/BaseDisplay.cc') diff --git a/src/BaseDisplay.cc b/src/BaseDisplay.cc index 8be0a7f7..21f9ab53 100644 --- a/src/BaseDisplay.cc +++ b/src/BaseDisplay.cc @@ -417,7 +417,7 @@ ScreenInfo::ScreenInfo(BaseDisplay *d, unsigned int num) { HeightOfScreen(ScreenOfDisplay(basedisplay->getXDisplay(), screen_number))); /* - If the default depth is at least 15 we will use that, + If the default depth is at least 8 we will use that, otherwise we try to find the largest TrueColor visual. Preference is given to 24 bit over larger depths if 24 bit is an option. */ @@ -426,7 +426,7 @@ ScreenInfo::ScreenInfo(BaseDisplay *d, unsigned int num) { visual = DefaultVisual(basedisplay->getXDisplay(), screen_number); colormap = DefaultColormap(basedisplay->getXDisplay(), screen_number); - if (depth < 15) { + if (depth < 8) { // search for a TrueColor Visual... if we can't find one... // we will use the default visual for the screen XVisualInfo vinfo_template, *vinfo_return; -- cgit v1.2.3