fix for #79167. ncols. reviewed by mcafee.

Note: doc message should be changed to reflect
that ncols is added to number of system colors
for total number of colors allowed.
This commit is contained in:
pnunn%netscape.com 1998-09-03 21:02:31 +00:00
Родитель 91d9580a12
Коммит 89a1a49e8e
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -1852,12 +1852,15 @@ fe_InitColormap (MWContext *context)
goto colorspace_init_complete;
}
max = 256;
/* User-specified max number of cells. */
if(fe_globalData.max_image_colors > 0 )
max = fe_globalData.max_image_colors;
else
max = 256;
/* User-specified max number of cells. */
if (!colormap->private_p)
{
if ((fe_globalData.max_image_colors) > 0 && !colormap->private_p)
if ((fe_globalData.max_image_colors) > 0 && !colormap->private_p)
max = fe_globalData.max_image_colors;
#ifdef __sgi