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

  1. /* gset.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. void g_set (int x, int y, int color)
  10. {
  11.   if (x >= _g_clipx0 && x <= _g_clipx1 && y >= _g_clipy0 && y <= _g_clipy1)
  12.     {
  13.       GLOCK;
  14.       _g_mem[x + y*320] = (unsigned char)color;
  15.       GUNLOCK;
  16.     }
  17. }
  18.