home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / FSGFX.ZIP / G_RMDTH.C < prev    next >
C/C++ Source or Header  |  1990-03-06  |  317b  |  18 lines

  1. /* g_rmdth.c */
  2. /* restore mode thread for resetting mode after vio pop ups, or with OS/2
  3. 1.0 */
  4.  
  5. #include "mygraph.h"
  6.  
  7. void far g_rmdth()
  8. {
  9.     unsigned int fnotify;
  10.     fnotify = 0;
  11.     while(1)
  12.     {
  13.         g_doscall(VioModeWait(0,&fnotify,0));
  14.         g_doscall(VioSetMode(&newconfig,0));    /* set graphics mode */
  15.     }
  16. }
  17.  
  18.