Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!purdue!bu-cs!dartvax!eleazar.dartmouth.edu!earleh From: earleh@eleazar.dartmouth.edu (Earle R. Horton) Newsgroups: comp.sys.mac.programmer Subject: Re: CopyBits and the Mac II Message-ID: <10006@dartvax.Dartmouth.EDU> Date: 3 Sep 88 18:17:18 GMT References: <51404DN5@PSUVM> Sender: news@dartvax.Dartmouth.EDU Reply-To: earleh@eleazar.dartmouth.edu (Earle R. Horton) Organization: none Lines: 21 In article <51404DN5@PSUVM> DN5@PSUVM.BITNET (D. Jay Newman) writes: >Hi out there: > >I am programming a simple animation on the Mac (a simple polygon rotating >around the center), and to make it smoother I used an off-screen bitmap, >and I used CopyBits to get it onto the screen (like TechNote 41). > >This works correctly with a Mac Plus, but the Mac II includes a lot of >garbage in the rectangle with the rotating polygon: I can still see the I am doing something very similar on the Mac II, a rotating three dimensional whatchamacallit. On the II, I use color windows and PixMaps, rather than BitMaps, for the offscreen storage. This is explained in TechNote 120, along with example MPW Pascal source. You might want to consider doing this if your program is to work on both color and non-color machines and you have some access to a II during your development. It took me about a day to work up the necessary routines, including testing for machine type, using the correct type of Map for the present machine, and so forth. Earle R. Horton. 23 Fletcher Circle, Hanover, NH 03755 (603) 643-4109