Path: utzoo!utgpu!watmath!clyde!att!ucbvax!dewey.soe.berkeley.edu!oster From: oster@dewey.soe.berkeley.edu (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: portBits update in the current GrafPort Message-ID: <27487@ucbvax.BERKELEY.EDU> Date: 12 Jan 89 00:12:46 GMT References: <8186@orstcs.CS.ORST.EDU> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) Organization: School of Education, UC-Berkeley Lines: 15 In article <8186@orstcs.CS.ORST.EDU> borcelf@jacobs.cs.orst.edu (Fernando Borcel) writes: ... > BeginUpdate(tempwindow); SetPort(tempwindow); > EraseRect(theport^.portrect); ... Well, one error is that BeginUpdate modifies the visRgn of its argument temporarily (EndUpdate puts it back.), but it doesn't make it the current port. You must do that explicitly. It is wise to save the old port so you can restore it. --- David Phillip Oster --"When we replace the mouse with a pen, Arpa: oster@dewey.soe.berkeley.edu --3 button mouse fans will need saxophone Uucp: {uwvax,decvax}!ucbvax!oster%dewey.soe.berkeley.edu --lessons." - Gasee