Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!sgi!shinobu!odin!cashew.asd.sgi.com!kurt From: kurt@cashew.asd.sgi.com (Kurt Akeley) Newsgroups: comp.sys.sgi Subject: Re: multiple winopen()'s with different gconfig()'s? Message-ID: <1991Apr29.150611.6250@odin.corp.sgi.com> Date: 29 Apr 91 15:06:11 GMT References: <1991Apr28.115605.2164@agate.berkeley.edu> Sender: news@odin.corp.sgi.com (Net News) Reply-To: kurt@cashew.asd.sgi.com (Kurt Akeley) Organization: sgi Lines: 35 In article <1991Apr28.115605.2164@agate.berkeley.edu>, dwallach@soda.berkeley.edu (Dan Wallach) writes: |> While I was working on the sperm program (posted a couple hours ago) I ran |> into one nasty bug that I just threw my hands up at. |> |> There are times when I have two windows open, and I'd like them to have |> different drawmode()'s and different color modes (RGBmode vs. cmode). |> |> I tried effectively saying.... |> |> win1 = winopen("Win 1"); |> drawmode(OVERDRAW); |> gconfig(); |> win2 = winopen("Win 2"); |> winset(win2); /* probably not necessary */ |> drawmode(NORMALDRAW); |> RGBmode(); |> gconfig(); |> |> And that just didn't work. The NORMALDRAW business stuck. Drawmode is not a gconfig command. In other words, drawmode takes effect immediately, rather than the next time that gconfig is called. I'd guess that the gconfig implementation on your Personal Iris is reseting drawmode as a part of its operation. Try the sequence win1 = winopen("Win 1"); drawmode(OVERDRAW); win2 = winopen("Win 2"); RGBmode(); gconfig(); This should be all that is necessary. -- Kurt