dtstyle: enable palette editor on true/direct color screens

This commit is contained in:
alx
2014-03-15 23:31:01 +01:00
committed by Jon Trulson
parent 6b0d0cd71e
commit 2c162726c7
4 changed files with 193 additions and 99 deletions

View File

@@ -452,6 +452,7 @@ main(
Boolean useMaskRtn, useIconFileCacheRtn;
char *dirs = NULL;
char *string;
Visual *visual;
#ifdef USERHELP
malloc_check(1);
@@ -500,6 +501,8 @@ malloc_trace(0);
style.startupDialog = NULL;
style.dtwmDialog = NULL;
style.i18nDialog = NULL;
visual = XDefaultVisual(style.display,style.screenNum);
style.visualClass = visual->class;
if (progName = DtStrrchr(argv[0], '/')) progName++;
else progName = argv[0];