dont chose visuals > 24bit :)

SVN revision: 1017
This commit is contained in:
Carsten Haitzler 1999-10-28 10:40:01 +00:00
parent 919848cfaa
commit e14134c6e2
1 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,8 @@ __imlib_BestVisual(Display *d, int screen, int *depth_return)
maxd = 0;
for (i = 0; i < num; i++)
{
if (xvir[i].depth > maxd)
if ((xvir[i].depth > maxd) &&
(xvir[i].depth <= 24))
{
maxd = xvir[i].depth;
v = xvir[i].visual;