home *** CD-ROM | disk | FTP | other *** search
/ YPA: Your Privacy Assured / YPA.ISO / other_goodies / utilities / amigaguid.lha / AmigaGuide / AG_V39 / Source / HyperBrowser / bitmap.c < prev    next >
C/C++ Source or Header  |  1993-01-08  |  798b  |  33 lines

  1. /* bitmap.c
  2.  *
  3.  * (c) Copyright 1992 Commodore-Amiga, Inc.  All rights reserved.
  4.  *
  5.  * This software is provided as-is and is subject to change; no warranties
  6.  * are made.  All use is at your own risk.  No liability or responsibility
  7.  * is assumed.
  8.  *
  9.  */
  10.  
  11. #include "hyperbrowser.h"
  12.  
  13. /*****************************************************************************/
  14.  
  15. STRPTR DumpBitMapFlags (struct GlobalData *gd, struct Screen *scr)
  16. {
  17.     UBYTE buffer[256];
  18.     ULONG value;
  19.  
  20.     memset (buffer, 0, sizeof (buffer));
  21.  
  22.     value = GetBitMapAttr (scr->RastPort.BitMap, BMA_FLAGS);
  23.     if (value & BMF_DISPLAYABLE)
  24.     strcat (buffer, "displayable ");
  25.     if (value & BMF_INTERLEAVED)
  26.     strcat (buffer, "interleaved ");
  27.     if (value & BMF_STANDARD)
  28.     strcat (buffer, "standard ");
  29.  
  30.     return (buffer);
  31. }
  32.  
  33.