1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 04:48:06 +01:00

added option for std cmap creation in wrlib

This commit is contained in:
kojima
2000-04-07 22:43:26 +00:00
parent af3f33ecb9
commit 6b93946309
2 changed files with 7 additions and 1 deletions

View File

@@ -431,6 +431,7 @@ print_help()
puts(_(" --locale locale locale to use"));
puts(_(" --create-stdcmap create the standard colormap hint in PseudoColor visuals"));
puts(_(" --visual-id visualid visual id of visual to use"));
puts(_(" --static do not update or save configurations"));
#ifdef DEBUG

View File

@@ -722,8 +722,13 @@ wScreenInit(int screen_number)
if (rattr.colors_per_channel<2)
rattr.colors_per_channel = 2;
/* will only be accounted for in PseudoColor */
rattr.standard_colormap_mode = RCreateStdColormap;
if (wPreferences.create_stdcmap) {
rattr.standard_colormap_mode = RCreateStdColorma;
} else {
rattr.standard_colormap_mode = RUseStdColormap;
}
if (wVisualID>=0) {
rattr.flags |= RC_VisualID;