home *** CD-ROM | disk | FTP | other *** search
- Path: sn.no!not-for-mail
- From: christon@sn.no (Christopher Naas)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Help on Changing Colours
- Date: 14 Mar 1996 17:37:01 +0100
- Organization: SN Internett
- Message-ID: <1092.6647T982T2285@sn.no>
- References: <4i42k4$4dg@trog.dra.hmg.gb>
- NNTP-Posting-Host: sinsen.sn.no
- X-Newsreader: THOR 2.21 (Amiga;SOUP)
-
- David Spring wrote:
-
- >I've got a what is probably a simple problem:-
- >In assembler I have done the following:-
- >Open Intuition.library
- >Open Graphics.library
- >OpenScreenTagList
- >OpenWindowTagList
- >SetRGB4
- >CloseWindow
- >CloseScreen
- >Close Graphics.library
- >Close Intuition.library
- >The problem is that the colour changes on the screen which executed
- >the program. So if was run from Workbench then the colour would change
- >on that screen, and from Monam the same thing happens.
- >I have tried using GetColourMap and FreeColourMap as a last resort
- >before and after the SetRGB4 statement.
- >Can anyone tell me if the SetRGB32 statement has the same parameters
- >as the SetRGB4 one?
-
- SetRGB4( vp, n, r, g, b)
- SetRGB32( vp, n, r, g, b)
-
- You have to use the pointer to the viewport for screen you opened and not the
- default public screen.
-
- So, your call would be:
-
- SetRGB4 (MyScreen.ViewPort, 0, 2, 2, 2);
-
-
- --
- Christopher Landmark Naas o EMail: christon@sn.no
- LoungeBar Development o WWW: http://www.sn.no/~christon/
- Former Reg. Amiga Developer o IRC: KarmaComa
-