Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-ses!hpcuhb!hpindda!tribby From: tribby@hpindda.HP.COM (David Tribby) Newsgroups: comp.sys.apple Subject: Re: RE: 2 more //gs programming questions Message-ID: <6230039@hpindda.HP.COM> Date: 5 Jul 89 16:50:37 GMT References: <8907011229.AA12157@decwrl.dec.com> Organization: HP Information Networks Group/Cupertino CA Lines: 16 Dave Lyons explains how to update only the part of a window that needs it... > what you want to do is get the bouding box of the VisRegion (try >GetVisHandle()^^.bBox to get the smallest rectangle that encloses the part of >the window that needs to be updated. I tried this over the weekend and was VERY pleased with the speedup! One problem I had to overcome: the TML Pascal unit for QuickDraw incorrectly lists GetVisHandle as a PROCEDURE with a parameter, rather than a FUNCTION that returns the value. Using the original PROCEDURE returned garbage values. I defined a FUNCTION GetVisHandle2 of the proper type, bound to the same Tool. Then it worked fine. --Dave Tribby - - - - - ARPA: tribby%hpda@hplabs.HP.COM UUCP: hplabs!hpda!tribby