Allow colormap_size and bits_per_rgb to be greater or equal.

This commit is contained in:
David Reveman 2008-07-03 16:56:56 -04:00
parent e776efc2b7
commit c90b5657e6

View file

@ -1322,9 +1322,9 @@ static Bool dmxCompareScreens(DMXScreenInfo *new,
old->beVisuals[i].green_mask &&
new->beVisuals[j].blue_mask ==
old->beVisuals[i].blue_mask &&
new->beVisuals[j].colormap_size ==
new->beVisuals[j].colormap_size >=
old->beVisuals[i].colormap_size &&
new->beVisuals[j].bits_per_rgb ==
new->beVisuals[j].bits_per_rgb >=
old->beVisuals[i].bits_per_rgb)
break;