home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2106 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

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