Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!jato!granite!dundas From: dundas@granite.jpl.nasa.gov (John Dundas) Newsgroups: comp.sys.mac.programmer Subject: Re: GlobalToLocal() LocalToGlobal() information Message-ID: <1991Mar7.203748.20407@jato.jpl.nasa.gov> Date: 7 Mar 91 20:37:48 GMT References: <3744.27CD13AE@stjhmc.fidonet.org> <23417@well.sf.ca.us> Sender: news@jato.jpl.nasa.gov Reply-To: dundas@granite.Jpl.Nasa.Gov (John Dundas) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 9 Nntp-Posting-Host: granite.jpl.nasa.gov In MPW, the following macros perform the equivalent function to their ROM counterparts. #define GLOBALTOLOCAL(_pt) (((Point * )(_pt))->h += qd.thePort->portBits.bounds.left), \ (((Point * )(_pt))->v += qd.thePort->portBits.bounds.top) #define LOCALTOGLOBAL(_pt) (((Point * )(_pt))->h += -qd.thePort->portBits.bounds.left), \ (((Point * )(_pt))->v += -qd.thePort->portBits.bounds.top) John Dundas