home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / EMXLIB8F.ZIP / EMX / LIB / VIDEO / WMUPDATE.C < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-02  |  402 b   |  16 lines

  1. /* wmupdate.c (emx+gcc) -- Copyright (c) 1987-1993 by Eberhard Mattes */
  2.  
  3. #include <sys/winmgr.h>
  4. #include "winmgr2.h"
  5.  
  6. void wm_update (wm_handle wh, int flag)
  7. {
  8.   if (wh->used != WM_USED)
  9.     return;
  10.   if (wh->update_req)
  11.     _wm_put1 (wh);                            /* Restore window contents */
  12.   wh->update_req = FALSE;
  13.   wh->update_flag = flag;
  14.   wh->display = flag && wh->open;
  15. }
  16.