Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!decwrl!sgi!shinobu!odin!bennett From: bennett@sgi.com (Jim Bennett) Newsgroups: comp.sys.sgi Subject: Re: drawing in subwindows Message-ID: <1990Aug15.000802.14816@odin.corp.sgi.com> Date: 15 Aug 90 00:08:02 GMT References: <1990Aug14.100020.5096@hellgate.utah.edu> Sender: news@odin.corp.sgi.com (Net News) Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 17 margaret@cs.utah.edu (Malgorzata Sturgill) writes: > Hi, > I am trying to draw in subwindows ( open with swinopen ). I finally > managed to persuade my code to draw, but unfortunately it does not draw where > I expect. I have included a piece of code to ilustrate. > > ... You just need to set the projection, for example: ortho2 (-0.5, 199.5, -0.5, 199.5); after the call to reshapeviewport() in your redraw routine. Then it works like you would expect. Jim