home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 4 / CDPD_IV.bin / utilities / system / yak_1.59 / source / blackborder.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-04  |  401 b   |  28 lines

  1. #include <exec/types.h>
  2. #include <proto/intuition.h>
  3. #include <graphics/gfxbase.h>
  4. #include <hardware/custom.h>
  5.  
  6. extern struct GfxBase *GfxBase;
  7.  
  8.  
  9. /*
  10. ** Enable or disable black border on all screens, 3.0+ only
  11. **
  12. */
  13.  
  14. __regargs void 
  15. ToggleBlackBorder( BOOL toggle )
  16. {
  17.     if (toggle)
  18.     {
  19.         GfxBase->BP3Bits |= BPLCON3_BRDNBLNK;
  20.     }
  21.     else
  22.     {
  23.         GfxBase->BP3Bits &= ~BPLCON3_BRDNBLNK;
  24.     }
  25.     RemakeDisplay();
  26. }
  27.  
  28.