From 6b9394630945d7a9e83c2dde1170e075e9688ccc Mon Sep 17 00:00:00 2001 From: kojima Date: Fri, 7 Apr 2000 22:43:26 +0000 Subject: [PATCH] added option for std cmap creation in wrlib --- src/main.c | 1 + src/screen.c | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index fd724b7c..413ff33b 100644 --- a/src/main.c +++ b/src/main.c @@ -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 diff --git a/src/screen.c b/src/screen.c index 14d2c400..4dba2182 100644 --- a/src/screen.c +++ b/src/screen.c @@ -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; -- 2.11.4.GIT