home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c185 / 2.ddi / OWLSRC.EXE / CSCAPE / SOURCE / PCRESTOR.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-06  |  780 b   |  36 lines

  1. /*
  2.     pcrestor.c
  3.  
  4.     % pc_RestoreDisp
  5.  
  6.     10/19/88  by Ted.
  7.     Extracted from pcdisp.c
  8.  
  9.     OWL 1.1
  10.     Copyright (c) 1988, by Oakland Group, Inc.
  11.     ALL RIGHTS RESERVED.
  12.  
  13.     Revision History:
  14.     -----------------
  15. */
  16.  
  17. #include "pcpriv.h"
  18. /* -------------------------------------------------------------------------- */
  19.  
  20. void pc_RestoreDisp()
  21. {
  22.     /* Re-Init video mode */
  23.     if (pcdata->oldmode == pcdata->info.mode) {
  24.         pc_SetMode(pcdata->info.mode);    /* Set mode now if pc_initmode won't */
  25.     }
  26.     pc_initmode();    /* Make sure cursor gets turned off */
  27.  
  28.     /* Re-Init mouse in case the mode swap confused the mouse driver */
  29.     if (hard_IsMouseOn()) {
  30.         hard_InitMouse();
  31.     }
  32.     disp_Repaint();
  33. }
  34. /* -------------------------------------------------------------------------- */
  35.  
  36.