home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_06_08 / v6n8047b.txt < prev    next >
Text File  |  1989-09-28  |  534b  |  24 lines

  1. /* hr_quit.c - Disable the high resolution display mode by
  2.  * writing to the addresses of the appropriate soft switches.
  3.  * The value written is of no consequence.  Returns void.
  4.  *
  5.  * Enviornment:    Apple II, Aztec c65 V1.05B
  6.  * Programmer:    Don Strayer
  7.  * Date:        15-Jun-88
  8.  */
  9.  
  10. #include <hr_apple2.h,d2>
  11.  
  12. hr_quit()
  13.  
  14. {    char *swa;                    /* pointer to soft switch address */
  15.  
  16.     swa  = HR_OFF;                /* disable hi res graphics mode */
  17.     *swa = '\0';
  18.     swa  = HR_TXTON;            /* enable text mode */
  19.     *swa = '\0';
  20.  
  21.     return();
  22. }
  23.  
  24.