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

  1. /* wmbacksp.c (emx+gcc) -- Copyright (c) 1987-1993 by Eberhard Mattes */
  2.  
  3. #include <sys/winmgr.h>
  4. #include "winmgr2.h"
  5.  
  6. void wm_backsp (wm_handle wh, int count)
  7. {
  8.   if (wh->used != WM_USED)
  9.     return;
  10.   while (count > 0)
  11.     {
  12.       --count;
  13.       if (wh->x <= 0)
  14.         {
  15.           if (wh->y > 0)
  16.             {
  17.               wh->x = wh->width - 1;
  18.               --wh->y;
  19.             }
  20.         }
  21.       else
  22.         --wh->x;
  23.     }
  24.   _wm_cursor1 ();
  25. }
  26.