Path: utzoo!attcan!uunet!cs.utexas.edu!sun-barr!rutgers!cbmvax!peter From: peter@cbmvax.commodore.com (Peter Cherna) Newsgroups: comp.sys.amiga Subject: Re: Problems with Gadget rendering... Message-ID: <15598@cbmvax.commodore.com> Date: 5 Nov 90 15:28:56 GMT References: <35429@nigel.ee.udel.edu> Reply-To: peter@cbmvax.commodore.com (Peter Cherna) Organization: Commodore, West Chester, PA Lines: 30 In article <35429@nigel.ee.udel.edu> JK829055@pucal.bitnet (Jim Karczewski, Programmer -- TTR Development, Inc.) writes: >Hello.. > I am hoping someone out there can help me with a little problem >I am Having.. I have anAssembly Program that opens a screen,then a window, >inside the window is a gadget (TOGGLESELECT) which has some custome imagery. >The problem is, is that the Gadget is never displayed.. And I can't seem >to unserstand what I am doing wrong.. Here is the code: Judging by the code sample, it appears you aren't putting the Image data into "chip" memory. The Amiga has two kinds of memory - memory that the custom chips can access (put graphics and sound data there), and memory that the chips can't. This second type of memory is called "fast" memory since it typically runs much faster. So you must ensure that your Image data (not the Image or Gadget structures themselves, though) are reachable by the custom chips. You may be able to specify that part of your data gets placed into chip memory (consult the assembler/linker manual). Otherwise, allocate some chip memory (Use AllocMem(size, MEMF_CHIP)), then copy the image data there, and refer to the copy. (Don't forget to free the memory upon exit). > Jim Karczewski Peter -- Peter Cherna, Software Engineer, Commodore-Amiga, Inc. {uunet|rutgers}!cbmvax!peter peter@cbmvax.cbm.commodore.com My opinions do not necessarily represent the opinions of my employer. "She read him like a book: she liked to peek at his end."