зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
91d9580a12
Коммит
89a1a49e8e
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче