🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #2897

Re: DrawImage() woes. (LONG)

#2897
From: Peter Cherna
Date: Mon, 22 Jan 1990 19:18
32 lines
1811 bytes
In article <625@shodha.dec.com> ridder@elvira.enet.dec.com (Hans Ridder) writes:
>In article <9389@cbmvax.commodore.com> peter@cbmvax.commodore.com
> (Peter Cherna) writes:
>>If your compiler doesn't support the "chip" keyword, then
>>leave out the word "chip" above and say
>>
>>	ChipData = (UWORD *)AllocMem(sizeof(ImageData), MEMF_CHIP);

...

>In this case, wouldn't be a good idea to use the TypeOfMem() Exec
>function to determine if the ImageData was was already in chip memory?
>Something like (I don't have the RKM's here, so no snickering):
>
>    if ((TypeOfMem(ImageData) & MEMF_CHIP) == 0) {
>	ChipData = (UWORD)AllocMem(sizeof(ImageData), MEMF_CHIP);
>	... /* All the stuff you had */
>    }

No snickering at all. Very astute observation.

>
>>     Peter Cherna, Software Engineer, Commodore-Amiga, Inc.
>>     {uunet|rutgers}!cbmvax!peter    peter@cbmvax.cbm.commodore.com
>
>-hans
>========================================================================
>  Hans-Gabriel Ridder			Digital Equipment Corporation
>  ridder@elvira.enet.dec.com		Customer Support Center
>  ...decwrl!elvira.enet!ridder		Colorado Springs, CO

     Peter
Technical Details
Message-ID: <9417@cbmvax.cbm.commodore.com.commodore.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!apple!oliveb!amiga!cbmvax.cbm.commodore.com!peter
References: <487@dsoft.UUCP> <1990Jan17.101103.10084@gdt.bath.ac.uk> <9389@cbmvax.commodore.com> <625@shodha.dec.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!apple!oliveb!amiga!cbmvax.cbm.commodore.com!peter
From: peter@cbmvax.cbm.commodore.com.commodore.com (Peter Cherna)
Newsgroups: comp.sys.amiga.tech
Subject: Re: DrawImage() woes. (LONG)
Keywords: DrawImage(), PlanePick, PlaneOnOff
Message-ID: <9417@cbmvax.cbm.commodore.com.commodore.com>
Date: 22 Jan 90 19:18:38 GMT
References: <487@dsoft.UUCP> <1990Jan17.101103.10084@gdt.bath.ac.uk> <9389@cbmvax.commodore.com> <625@shodha.dec.com>
Reply-To: peter@cbmvax.cbm.commodore.com.commodore.com (Peter Cherna)
Organization: Commodore, West Chester, PA
Lines: 32