Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!rutgers!cbmvax!peter From: peter@cbmvax.commodore.com (Peter Cherna) Newsgroups: comp.sys.amiga.programmer Subject: Re: 2.0 Screens Message-ID: <20376@cbmvax.commodore.com> Date: 4 Apr 91 20:21:18 GMT References: <4503@orbit.cts.com> Reply-To: peter@cbmvax.commodore.com (Peter Cherna) Organization: Commodore-Amiga, Inc. West Chester, PA. Lines: 33 In article <4503@orbit.cts.com> chucks@pnet51.orb.mn.org (Erik Funkenbusch) writes: >files. any help from anyone out there? the guru is 8500 0009, which >according to my RKM's is an unknown screen type. here is a fragment. I presume you mean 8400 0009. >struct TagItem scrtags[7] = {{SA_Overscan, OSCAN_TEXT},{SA_Pens, ~0}, > {SA_FullPalette, TRUE},{SA_Type, CUSTOMSCREEN}, > {SA_Title, "BBS Screen"},{SA_Width, 640}, > {TAG_END, NULL}}; SA_Pens takes a pointer to an array of UWORDs, which must be terminated in ~0. Do not pass it a ~0. You want: UWORD mypens[] = { /* set up your pen choices if any, here */ ~0, /* terminator */ }; Then later, {SA_Pens, mypens}, >So does anyone have any ideas? this is a headache. This guru usually appears if you have a bad NewWindow.Type. Check that. Peter -- Peter Cherna, Operating Systems Development Group, Commodore-Amiga, Inc. {uunet|rutgers}!cbmvax!peter peter@cbmvax.commodore.com My opinions do not necessarily represent the opinions of my employer. "If all you have is a hammer, everything looks like a nail."