Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcso!stroyan From: stroyan@hpfcso.HP.COM (Mike Stroyan) Newsgroups: comp.sys.hp Subject: Re: Colormap changing and gwm... Message-ID: <7370106@hpfcso.HP.COM> Date: 15 Mar 90 18:28:40 GMT References: Organization: Hewlett-Packard, Fort Collins, CO, USA Lines: 20 > I'm running gwm 1.5d on an HP9000/375 with HP-UX 6.5. I'm using HP's >xwcreate program to create a window for use with their Starbase >graphics package (using the "sox11" driver). At any rate, Starbase sets >up a colormap for the X-window that I don't want it to do. The sox11 driver will allocate a new colormap if it needs to, but will use the default colormap if it can. The following actions require a new colormap- gopen with either INIT or RESET_DEVICE shade_mode with INIT define_color_table double_buffer display_enable If you avoid these actions you can sidestep the GWM problem. When you gopen without the INIT flag you will probably want to call clear_view_surface to clear the window, since gopen will not do it. Mike Stroyan, stroyan@hpfcla.hp.com