Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!uunet!bcstec!evtprp0b From: mrt7455@evtprp0b (Michael R Tucker) Newsgroups: comp.windows.x Subject: setting resources for monochrome and color apps Message-ID: <197@evtprp0b.UUCP> Date: 14 Aug 90 18:10:48 GMT Sender: mrt7455@evtprp0b.UUCP Organization: Boeing Computer Services Everett Propulsion, Everett WA Lines: 11 I am running X on an Apollo DN3500 monochrome system. I have a little X application written to plot a sin wave. It works correctly on a color node seemingly regardless of what I set the background and forground colors to be in my resource files. On my monochrome node, it draws a white line on a white background if the back/foreground is set to white/black, and it draws a black line on a black background if the back/foreground is set to black/white in my resource file. It does draw a black line on a white backgroud in monochrome if I explicitly set the foreground to BlackPixel using XSetForeground. What I want to know is this, Is there a way to set my resources so that the app will plot a dark or "black" line on a light or "white" background without have to hard code it into my app?