1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

few more fixes to std colormap code

This commit is contained in:
kojima
1999-11-16 01:53:43 +00:00
parent 7698ba2f1c
commit 8cd13fe96e

View File

@@ -753,7 +753,18 @@ wScreenInit(int screen_number)
rattr.flags |= RC_VisualID; rattr.flags |= RC_VisualID;
rattr.visualid = wVisualID; rattr.visualid = wVisualID;
} }
scr->rcontext = RCreateContext(dpy, screen_number, &rattr); scr->rcontext = RCreateContext(dpy, screen_number, &rattr);
if (!scr->rcontext && RErrorCode == RERR_STDCMAPFAIL) {
wwarning(RMessageForError(RErrorCode));
rattr.flags &= ~RC_StandardColormap;
rattr.standard_colormap_mode = RUseStdColormap;
scr->rcontext = RCreateContext(dpy, screen_number, &rattr);
}
if (!scr->rcontext) { if (!scr->rcontext) {
wwarning(_("could not initialize graphics library context: %s"), wwarning(_("could not initialize graphics library context: %s"),
RMessageForError(RErrorCode)); RMessageForError(RErrorCode));