Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!bloom-beacon!oberon!cit-vax!ucla-cs!zen!ucbvax!ZERMATT.LCS.MIT.EDU!RWS From: RWS@ZERMATT.LCS.MIT.EDU (Robert Scheifler) Newsgroups: comp.windows.x Subject: color fixes to clients/bitmap/bitmap.c Message-ID: <870919100946.2.RWS@KILLINGTON.LCS.MIT.EDU> Date: Sat, 19-Sep-87 10:09:00 EDT Article-I.D.: KILLINGT.870919100946.2.RWS Posted: Sat Sep 19 10:09:00 1987 Date-Received: Sun, 20-Sep-87 15:35:42 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 62 Various calls missing the display argument. *** /tmp/,RCSt1011763 Sat Sep 19 10:03:55 1987 --- bitmap.c Fri Sep 18 15:48:12 1987 *************** *** 1,5 **** #ifndef lint ! static char *rcsid_bitmap_c = "$Header: bitmap.c,v 1.12 87/09/11 23:19:52 sun Exp $"; #endif #include --- 1,5 ---- #ifndef lint ! static char *rcsid_bitmap_c = "$Header: bitmap.c,v 1.13 87/09/18 15:47:29 newman Exp $"; #endif #include *************** *** 380,400 **** XAllocColorCells(d, cmap, FALSE, masks, high_color ? 2 : 1, &background, 1)) { bdef.pixel = background; ! XStoreColor(&bdef); invertplane = masks[0]; if (high_color) { highlightplane = masks[1]; hdef.pixel = background | highlightplane; ! XStoreColor(&hdef); hdef.pixel |= invertplane; ! XStoreColor(&hdef); } else highlightplane = invertplane; fdef.pixel = foreground = background | invertplane; ! XStoreColor(&fdef); } if (brdr_color && XParseColor(d, cmap, brdr_color, &bdef) && ! XAllocColor(&bdef)) border = bdef.pixel; } --- 380,400 ---- XAllocColorCells(d, cmap, FALSE, masks, high_color ? 2 : 1, &background, 1)) { bdef.pixel = background; ! XStoreColor(d, &bdef); invertplane = masks[0]; if (high_color) { highlightplane = masks[1]; hdef.pixel = background | highlightplane; ! XStoreColor(d, &hdef); hdef.pixel |= invertplane; ! XStoreColor(d, &hdef); } else highlightplane = invertplane; fdef.pixel = foreground = background | invertplane; ! XStoreColor(d, &fdef); } if (brdr_color && XParseColor(d, cmap, brdr_color, &bdef) && ! XAllocColor(d, &bdef)) border = bdef.pixel; }