diff options
author | Raph Levien <raph@src.gnome.org> | 2000-03-14 22:20:20 +0000 |
---|---|---|
committer | Raph Levien <raph@src.gnome.org> | 2000-03-14 22:20:20 +0000 |
commit | 146313a3d2d09c1495a4ae418218a2686108e3ef (patch) | |
tree | baa04344d3b244d12bcbcdf8b15b38e9a8e4790e /docs/reference/gdk/tmpl/rgb.sgml | |
parent | 10ba4fd066042b4335ae45e7560565872f71ba9b (diff) | |
download | gdk-pixbuf-146313a3d2d09c1495a4ae418218a2686108e3ef.tar.gz |
Better description of gdk_rgb_set_min_colors. Stric pointed out that
the previous documentation suggested using 256 to request a private
colormap, which is currently broken. This was making Mozilla crash.
Diffstat (limited to 'docs/reference/gdk/tmpl/rgb.sgml')
-rw-r--r-- | docs/reference/gdk/tmpl/rgb.sgml | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/docs/reference/gdk/tmpl/rgb.sgml b/docs/reference/gdk/tmpl/rgb.sgml index 9fb49ec5b..9d7beab23 100644 --- a/docs/reference/gdk/tmpl/rgb.sgml +++ b/docs/reference/gdk/tmpl/rgb.sgml @@ -58,11 +58,15 @@ gdk_rgb_set_min_colors (). The default is 5x5x5 (125). If a colorcube of this size or larger can be allocated in the default colormap, then that's done. Otherwise, GdkRgb creates its own private colormap. Setting it to 0 means that it always tries to use the default -colormap, and setting it to 256 means that it always creates a private -one. Note, however, that setting it to 0 doesn't let you get away with -ignoring the colormap and visual - a colormap is always created in -grayscale and direct color modes, and the visual is changed in cases -where a "better" visual than the default is available. +colormap, and setting it to 216 means that it always creates a private +one if it cannot allocate the 6x6x6 colormap in the default. If you +always want a private colormap (to avoid consuming too many colormap +entries for other apps, say), you can use gdk_rgb_set_install(TRUE). +Setting the value greater than 216 exercises a bug in older versions +of GdkRgb. Note, however, that setting it to 0 doesn't let you get +away with ignoring the colormap and visual - a colormap is always +created in grayscale and direct color modes, and the visual is changed +in cases where a "better" visual than the default is available. </para> <example> |