home *** CD-ROM | disk | FTP | other *** search
- Path: turtle.insider.sub.de!Klaus_Burkert%2:2437_901.88
- From: Klaus_Burkert%2:2437_901.88@GH_UUCP.INSIDER.SUB.DE
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: DisplayInfo.PaletteRange
- Date: 23 Jan 96 06:26:01 GMT
- Message-ID: <985385.19960123062601W+001@GH_UUCP.INSIDER.SUB.DE>
- X-Gateway: ZCONNECT UH ame.osn.de [UUCPfZ V5.67 U003],
- EMFido V.3.0c
- X-FTN-To: mrivers%tbag.org
-
- In article <MSGID_2=3A2490=2F1370.98_5a1d3487@fidonet.org>
- <2:2490/1370.98@fidonet> wrote:
- > How is the DisplayInfo.PaletteRange value supposed to be
- > interperted? Do the 3 lowwer nibbles represent the maximum
- > values for Red Green & Blue respectively? (In the same manner
- > as the color table for LoadRGB4(). Or ?
-
- Well...
-
- | struct DisplayInfo
- | {
- | struct QueryHeader Header;
- | UWORD NotAvailable; /* if NULL available, else see defines */
- | ULONG PropertyFlags; /* Properties of this mode see defines */
- | Point Resolution; /* ticks-per-pixel X/Y */
- | UWORD PixelSpeed; /* aproximation in nanoseconds */
- | UWORD NumStdSprites; /* number of standard amiga sprites */
- | UWORD PaletteRange; /* OBSOLETE - use Red/Green/Blue bits instead */
- | Point SpriteResolution; /* std sprite ticks-per-pixel X/Y */
- | UBYTE pad[4]; /* used internally */
- | UBYTE RedBits; /* number of Red bits this display supports (V39) */
- | UBYTE GreenBits; /* number of Green bits this display supports (V39) */
- | UBYTE BlueBits; /* number of Blue bits this display supports (V39) */
- | UBYTE pad2[5]; /* find some use for this. */
- | ULONG reserved[2]; /* terminator */
- | };
-
- As stated in "graphics/displayinfo.h", it's obsolete and its usage is
- strongly discourageand. You should use Red/Green/Blue bits instead.
- If e.g. RedBits is 8, then this diplay has 8 bits reolution for the red
- "gun" resulting in 256 different shades of red. Same for the two other guns.
-
- Ciao, Klaus.
-
- ---
- * Origin: Lonly Platform #88 (2:2437/901.88)
-
-