Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!cbmvax!spence From: spence@cbmvax.commodore.com (Spencer Shanson) Newsgroups: comp.sys.amiga.programmer Subject: Re: Format of superhires ILBMs? Keywords: Superhires ILBM IFF Message-ID: <22355@cbmvax.commodore.com> Date: 12 Jun 91 15:09:24 GMT References: <16955@darkstar.ucsc.edu> Reply-To: spence@cbmvax.commodore.com (Spencer Shanson) Organization: Commodore, West Chester, PA Lines: 31 In article <16955@darkstar.ucsc.edu> davids@ucscf.UCSC.EDU (Dave Schreiber) writes: > > >What is accepted way of specifying that an IFF ILBM file is a superhires >(1280x200 or 1280x400) picture? Thanks. You should be using the 2.0 LONGWORD ModeIds, and putting them in your CAMG IFF hunk. You can find a ViewPort's modeid using the GetVPModeID() function. The LONG ModeIDs were designed so that if any IFF reader only uses the Low word of the CAMG instead of the whole LONG, then you would get a ViewPort as close to the intended mode as possible. For example, if you werre to save the VGAPRODUCT_KEY as a LONG in the CAMG, and an IFF reader only read the low Word, it would open a HIRES-LACE on a non-ECS machine, and a SUPERHIRES-LACE on an ECS machine, using the default monitor type (NTSC or PAL). > >-- >Dave Schreiber E-mail: davids@ucscf.ucsc.edu >"It was fun learning about logic, but I don't see where or when I will ever >use it again." Disclaimer: -- --------------------------------------------------------------------------- Spencer Shanson - Amiga Software Engineer | email: spence@commodore.COM | or uunet!cbmvax!spence All opinions expressed are my own, and do not | Bix: sshanson (necessarily) represent those of Commodore. | "Copper? I hardly even | know her!"