home *** CD-ROM | disk | FTP | other *** search
- Path: andrew.cmu.edu!bo24+
- From: Berend Ozceri <bo24+@andrew.cmu.edu>
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: SetRGB32() doesn't do what it should...
- Date: Fri, 9 Feb 1996 02:16:37 -0500
- Organization: Masters student, Electrical and Computer Engineering, Carnegie Mellon, Pittsburgh, PA
- Message-ID: <gl6jHJ600iWZ0E=WYT@andrew.cmu.edu>
- References: <425.6611T1194T2896@ulysses.sax.de>
- NNTP-Posting-Host: po9.andrew.cmu.edu
- In-Reply-To: <425.6611T1194T2896@ulysses.sax.de>
-
- Excerpts from netnews.comp.sys.amiga.programmer: 7-Feb-96 SetRGB32()
- doesn't do what .. by Robby Paehlig@ulysses.sa
- > if(GfxBase = (struct GfxBase *)(OpenLibrary("graphics.library", 39L))) {
- > if(wb = LockPubScreen("Workbench")) {
- > SetRGB32(&(wb->ViewPort), 8, 0x0ul, 0x0ul, 0xFFul);
- > [...]
- >
- > Well, the color changes -- not to blue, but to black! What I'm doing wrong?
-
- As stated in the graphics.library auutodocs, SetRGB32() takes a 32-bit
- values per color channel so that it can be targetted to any graphics
- device. So, you need to change your call to:
-
- SetRGB32(&(wb->ViewPort), 8, 0x0ul, 0x0ul, 0xFFFFFFFFul);
-
- Good luck,
-
- Berend Ozceri
- Carnegie Mellon University
-
-