home *** CD-ROM | disk | FTP | other *** search
- Organization: Senior, Electrical and Computer Engineering, Carnegie Mellon, Pittsburgh, PA
- Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!agate!spool.mu.edu!caen!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!jf3c+
- Newsgroups: comp.sys.mac.programmer
- Message-ID: <QeyRNC_00WBMQ9JI8O@andrew.cmu.edu>
- Date: Thu, 5 Nov 1992 21:19:58 -0500
- From: "John A. Fedak" <jf3c+@andrew.cmu.edu>
- Subject: Copybits/Offscreen drawing...
- Lines: 38
-
- yo,
-
- OK I've stared a this long enough, what am I doing wrong?
- It's going to be a simple little animation routine. I'm attempting
- to draw offscreen to speed things up a little.
-
- I'm not getting any results (i.e. blank window). I guess I should
- be glad it's not crashing.
-
- ----
- GDHandle currDevice;
- GWorldPtr newWorld,currPort,oldPort;
- PixMapHandle newMap;
-
- GetGWorld(&currPort,&currDevice);
-
- NewGWorld(&newWorld,0,&mainBounds,0,0,0);
- newMap = GetGWorldPixMap(newWorld);
- LockPixels(newMap);
-
- SetGWorld(newWorld,currDevice);
-
- /* Draw Stuff Here */
-
- CopyBits(newWorld->portPixMap,currPort->portPixMap,
- &newWorld->portRect ,&currPort->portRect ,srcCopy,0);
-
- UnlockPixels(newMap);
- SetGWorld(currPort,currDevice);
- DisposeGWorld(newWorld);
-
- ----
-
-
- Thanks in advance,
-
- Feds
-
-