Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rochester!pt.cs.cmu.edu!theory.cs.cmu.edu!tsf From: tsf@theory.cs.cmu.edu (Timothy Freeman) Newsgroups: comp.windows.x Subject: xsetroot bug Message-ID: <1050@theory.cs.cmu.edu> Date: Tue, 2-Jun-87 18:05:20 EDT Article-I.D.: theory.1050 Posted: Tue Jun 2 18:05:20 1987 Date-Received: Sat, 6-Jun-87 18:44:06 EDT Organization: Carnegie-Mellon University, CS/RI Lines: 33 Calling "xsetroot -solid green" loses. Here's the rcsid of the broken version: static char *rcsid_xsetroot_c = "$Header: xsetroot.c,v 10.8 86/02/01 16:16:52 tony Rel $"; and gere are the diffs between the broken version and the fixed version I made: *************** *** 230,237 XGetHardwareColor(&color_def) ) fg = color_def.pixel; } ! else if (solid_name && strcmp(fg_name, "black") == 0) fg = BlackPixel; ! else if (solid_name && strcmp(fg_name, "white") == 0) fg = WhitePixel; if ((DisplayCells() > 2) && (bg_name != NULL)) { if ( --- 230,237 ----- XGetHardwareColor(&color_def) ) fg = color_def.pixel; } ! else if (fg_name && strcmp(fg_name, "black") == 0) fg = BlackPixel; ! else if (fg_name && strcmp(fg_name, "white") == 0) fg = WhitePixel; if ((DisplayCells() > 2) && (bg_name != NULL)) { if ( -- Tim Freeman Arpanet: tsf@theory.cs.cmu.edu Uucp: ...!seismo!theory.cs.cmu.edu!tsf