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

  1. /* wmgotoxy.c (emx+gcc) -- Copyright (c) 1987-1993 by Eberhard Mattes */
  2.  
  3. #include <sys/winmgr.h>
  4. #include "winmgr2.h"
  5.  
  6. void wm_gotoxy (wm_handle wh, int x, int y)
  7. {
  8.   if (wh->used != WM_USED)
  9.     return;
  10.   if (x >= 0 && x < wh->width && y >= 0 && y < wh->height)
  11.     {
  12.       wh->x = x;
  13.       wh->y = y;
  14.     }
  15.   _wm_cursor1 ();
  16. }
  17.