Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!cbmvax!peter From: peter@cbmvax.commodore.com (Peter Cherna) Newsgroups: comp.sys.amiga.programmer Subject: Re: Screen colors Message-ID: <22080@cbmvax.commodore.com> Date: 31 May 91 20:32:23 GMT References: <450.28469A0E@afitamy.fidonet.org> Reply-To: peter@cbmvax.commodore.com (Peter Cherna) Organization: Commodore-Amiga, Inc. West Chester, PA. Lines: 25 In article <450.28469A0E@afitamy.fidonet.org> Joe.Monnin@f210.n110.z1.FIDONET.ORG (Joe Monnin) writes: >AREA:UUCP_AMI2 >I've read all about >the colormap and the SetRGB4() function and all of that, but I don't >have a viewport defined. How do I change the background color? Your screen has a ViewPort embedded in it. So you would do SetRGB4( &myscreen->ViewPort, n, r, g, b ); If you're new to C, you may find the & and -> get confusing. Look at it as &(myscreen->ViewPort) if that helps. >AFIT Amiga Users BBS/UFGateway |Joe Monnin - via FidoNet node 1:110/300 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."