Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!fernwood!portal!cup.portal.com!jwhitnell From: jwhitnell@cup.portal.com (Jerry D Whitnell) Newsgroups: comp.sys.mac.programmer Subject: Re: PICT rowBytes Message-ID: <41522@cup.portal.com> Date: 22 Apr 91 00:11:56 GMT References: <327@nic.cerf.net> <1991Apr20.203304.3973@agate.berkeley.edu> Distribution: usa Organization: The Portal System (TM) Lines: 16 Ben Haller (deadman@garnet.berkeley.edu) writes... |In article <327@nic.cerf.net> moreland@nic.cerf.net (John Moreland) writes: |>rowBytes |= 0x8000; /* HIGH-BIT LIT MEANS "PIXMAP" */ |>rowBytes &= 0x7FFF; /* UNDO THE HIGH-BIT SO WE CAN USE ROWBYTES "NORMALLY" */ | | You should do &= with 0x1FFF, since the three high bits are reserved by |Apple. Besides this, you're fine. Actually, it is now &= 0x3fff. Apple unreserved the 0x2000 bit with 32-bit QuickDraw. | |-Ben Haller (deadman@garnet.berkeley.edu) |"Shock the monkey to life..." - Peter Gabriel Jerry Whitnell SuperMac Technology