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

  1. /*
  2.     dispclr.c
  3.  
  4.     % Display clear.
  5.  
  6.      3/24/89  by Ted.
  7.     Extracted from wmgr.c as wmgr_Clear
  8.  
  9.     OWL 1.1
  10.     Copyright (c) 1988, 1989 by Oakland Group, Inc.
  11.     ALL RIGHTS RESERVED.
  12.  
  13.     Revision History:
  14.     -----------------
  15. */
  16.  
  17. #include "oakhead.h"
  18. #include "disppriv.h"
  19.  
  20. /* -------------------------------------------------------------------------- */
  21.  
  22. void disp_Clear(color)
  23.     opixval color;
  24. /*
  25.     Clear the whole display flat out, regardless of what windows are present,
  26.     and sending no messages to any windows.
  27. */
  28. {
  29.     opbox box;
  30.     ptd_struct ptds;
  31.  
  32.     owl_Assert(disp_Ok(), OE_DC_DISP);
  33.  
  34.     ptds.win = disp_GetDispWin();
  35.     ptds.emsgdata = NULL;
  36.     ptds.relboxp = &box;
  37.     box.ymin = 0;
  38.     box.xmin = 0;
  39.     box.ymax = disp_GetPixHeight();
  40.     box.xmax = disp_GetPixWidth();
  41.  
  42.     disp_Cache();
  43.     ptd_Clear(&ptds, color);
  44.     disp_Flush();
  45. }
  46. /* -------------------------------------------------------------------------- */
  47.  
  48. void disp_Repaint()
  49. {
  50.     owl_Assert(disp_Ok(), OE_DR_DISP);
  51.     wmgr_PaintPixBox(curr_wmgr->bot_sys_win, win_pixboxp(disp_GetDispWin()));
  52. }
  53. /* -------------------------------------------------------------------------- */
  54.  
  55.