mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
fix for bug 31856 patch from stric@ing.umu.se
This commit is contained in:
parent
9e620e29bb
commit
913851ea3d
@ -165,6 +165,8 @@ HandleColormapPrefs( void )
|
||||
|
||||
rv = prefs->GetIntPref(PREF_NCOLS, &ivalue);
|
||||
if (NS_SUCCEEDED(rv) && ivalue >= 0 && ivalue <= 255 ) {
|
||||
if ( ivalue > 6*6*6 ) // workaround for old GdkRGB's
|
||||
ivalue = 6*6*6;
|
||||
gdk_rgb_set_min_colors( ivalue );
|
||||
return;
|
||||
}
|
||||
@ -174,7 +176,7 @@ HandleColormapPrefs( void )
|
||||
rv = prefs->GetBoolPref(PREF_INSTALLCMAP, &bvalue);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
if ( PR_TRUE == bvalue )
|
||||
gdk_rgb_set_min_colors( 255 ); // force it
|
||||
gdk_rgb_set_install( TRUE ); // force it
|
||||
else
|
||||
gdk_rgb_set_min_colors( 0 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user