1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-08 09:25:49 +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

@@ -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;