Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!ames!sgi!shinobu!odin!ramoth.esd.sgi.com!msc From: msc@ramoth.esd.sgi.com (Mark Callow) Newsgroups: comp.sys.sgi Subject: Re: noport() and killing windows. Message-ID: <1990Nov26.184906.7005@odin.corp.sgi.com> Date: 26 Nov 90 18:49:06 GMT References: <9011200320.AA26948@karron.med.nyu.edu> <3961@dftsrv.gsfc.nasa.gov> Sender: news@odin.corp.sgi.com (Net News) Reply-To: msc@sgi.com Organization: Silicon Graphics Inc., Entry Systems Division Lines: 32 In article <3961@dftsrv.gsfc.nasa.gov>, merritt@iris613.gsfc.nasa.gov (John H Merritt) writes: |> In article <9011200320.AA26948@karron.med.nyu.edu> karron%CMCL2.NYU.EDU@cunyvm.cuny.edu writes: |> >2) REDRAW event should be queued when the window opens. I queue a REDRAW |> |> int my_winopen(char *name) |> { |> id =winopen(name); |> qdevice(REDRAW); |> return(id); |> } This wrapper is completely unnecessary. winopen already does a qdevice(REDRAW). The man page even tells you so. I don't think Karron is that dumb (you do RTFM don't you Dan). I think what he's asking for is for a REDRAW event to be put in the queue when the window is first mapped. I happen to think it's a good idea but it's never likely to happen because of the compatibility problems it would cause. Besides it's not a big deal to type the statement qenter(REDRAW); I tried to reply privately to Karron but my mail was bounced somewhere. I was curious to know why he wanted a main process and loop with a noport() window. noport() was intended for things like scrsave and loading the colormaps. It's basically a hack because the only way to initialize the Graphics Library and get access to the graphics hardware is through winopen which has the horrid (in some circumstances) side effect of creating and mapping a window. There will be another way to initialize the GL in the next major software release. -- From the TARDIS of Mark Callow msc@ramoth.sgi.com, ...{ames,decwrl}!sgi!msc "Spirits of genius are always opposed by mediocre minds" - Albert Einstein