Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!brutus.cs.uiuc.edu!ginosko!uakari.primate.wisc.edu!pikes!boulder!unicads!tom
From: tom@unicads.UUCP (Tom Gerardy)
Newsgroups: comp.sys.mac.programmer
Subject: Bug in DiffRgn?
Keywords: bug diffrgn regions
Message-ID: <667@unicads.UUCP>
Date: 28 Sep 89 19:02:40 GMT
Lines: 25

I've been working on getting an update handler to be "just so" and wanted
to stop some header text from slopping over into the area above a scroll bar.
It first occured to me to modify the current clip region to exclude that area.
This didn't seem to work correctly and this is what I found using Lightsbug:

The original clip is virgin, just a rect with top, left, bottom, right of
-32767, -32767, 32767, 32767 respectively.  The region I'm trying to remove
is also rectangular: 0, 486, 81, 501.  The difference is more complicated, of
course, but the boundary rect is -32767, -32767, 81????, 32767.  This doesn't
seem correct to me!

Have I missed something essential here?  I was using 3 seperate regions each
properly created by NewRgn--all seems fine until the DiffRgn call.

For those who worry about the details: 2.5M Mac+ running Think/lightspeed
Pascal 2.02.  All start-up and control panel documents removed from the
system folder which leaves Online companion installed. System 6.0.2

	-tom

-- 
   - Tom Gerardy             UUCP: ...!sun!sunpeaks!unicads!tom
     UNICAD, Inc.              or: ...!ncar!{sunpeaks|boulder}!unicads!tom
     1695 38th Street
     Boulder, Colo.  80301         (303) 443-6961