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

  1. /* gget.c (emx+gcc) -- Copyright (c) 1987-1993 by Eberhard Mattes */
  2.  
  3. #include <stdlib.h>
  4. #include <graph.h>
  5. #define INCL_VIO
  6. #include <os2emx.h>
  7. #include "graph2.h"
  8.  
  9. int g_get (int x, int y)
  10. {
  11.   int ret;
  12.  
  13.   if (x >= _g_clipx0 && x <= _g_clipx1 && y >= _g_clipy0 && y <= _g_clipy1)
  14.     {
  15.       GLOCK;
  16.       ret = _g_mem[x + y*320];
  17.       GUNLOCK;
  18.       return (ret);
  19.     }
  20.   else
  21.     return (-1);
  22. }
  23.