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:
@@ -431,6 +431,7 @@ print_help()
|
|||||||
|
|
||||||
puts(_(" --locale locale locale to use"));
|
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(_(" --visual-id visualid visual id of visual to use"));
|
||||||
puts(_(" --static do not update or save configurations"));
|
puts(_(" --static do not update or save configurations"));
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
|||||||
@@ -722,8 +722,13 @@ wScreenInit(int screen_number)
|
|||||||
if (rattr.colors_per_channel<2)
|
if (rattr.colors_per_channel<2)
|
||||||
rattr.colors_per_channel = 2;
|
rattr.colors_per_channel = 2;
|
||||||
|
|
||||||
|
|
||||||
/* will only be accounted for in PseudoColor */
|
/* 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) {
|
if (wVisualID>=0) {
|
||||||
rattr.flags |= RC_VisualID;
|
rattr.flags |= RC_VisualID;
|
||||||
|
|||||||
Reference in New Issue
Block a user