home *** CD-ROM | disk | FTP | other *** search
- Path: minyos.its.rmit.EDU.AU!t930340
- From: t930340@minyos.its.rmit.EDU.AU (Steve Tanti)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Screen W/Custom Pens. HELP!
- Date: 29 Feb 1996 06:17:52 GMT
- Organization: Royal Melbourne Institute of Technology, Melbourne, Australia.
- Message-ID: <4h3geg$qa4@aggedor.rmit.EDU.AU>
- NNTP-Posting-Host: minyos.its.rmit.edu.au
- NNTP-Posting-User: t930340
- Summary: help w/opening custom screen
- Keywords: Custom Screen Pens
- X-Newsreader: NN version 6.5.0 #6 (NOV)
-
-
- I am just learning to program my Ami (A1200) and have the RKRM (Libs and
- Dev's only).
-
- I am trying to get it to open a custom screen with SA_Pens that I want.
- I am doing the following:
-
- static UWORD mypens[] = {
- 0x999, 0x000, 0xfff, 0x57a,
- 0x888, 0xaaa, 0xa98, 0xe9a, ~0
- };
-
- and then in the OpenScreenTags( structure
- ...stuff deleted...
- SA_Pens, (ULONG)mypens,
- NULL);
-
- I have the Depth correct etc... it opens fine but the colours are not
- even the ones I have specified. if I just have { ~0 } in the array, it
- opens fine w/the WB colours in the correct places and all.
-
- I have also tried putting
- SA_Colors, (ULONG)otherpens,
-
- otherpens being
- struct UWORD otherpens[] = {~0};
-
- and even changing it to: SA_Pens, (ULONG)&mypens, ...
- ^^^
-
- Any help will be nice.. since the RKRM's only mention that you can change
- the palette, but no proper example (which would have been easy since it
- says something like: 'The following example doesn't have custom pens, but
- you can do it')
-
- Thanks
-
-
- _________________http://minyos.its.rmit.edu.au/~t930340________________
- Steven Tanti | Where You Are Going
- t930340@Minyos.its.RMIT.edu.au | __O Is Just As Important
- Royal Melbourne Institute Of | _ \<,_ As How You Get There...
- Technology, Melbourne Australia |(_)/ (_) Enjoy Life, Ride A Bike!
-
-
-