home *** CD-ROM | disk | FTP | other *** search
- /* gget.c (emx+gcc) -- Copyright (c) 1987-1993 by Eberhard Mattes */
-
- #include <stdlib.h>
- #include <graph.h>
- #define INCL_VIO
- #include <os2emx.h>
- #include "graph2.h"
-
- int g_get (int x, int y)
- {
- int ret;
-
- if (x >= _g_clipx0 && x <= _g_clipx1 && y >= _g_clipy0 && y <= _g_clipy1)
- {
- GLOCK;
- ret = _g_mem[x + y*320];
- GUNLOCK;
- return (ret);
- }
- else
- return (-1);
- }
-