home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / EMXLIB8F.ZIP / EMX / LIB / GRAPH / GRAPH2.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-10  |  647 b   |  34 lines

  1. /* graph2.h (emx+gcc) */
  2.  
  3. extern int _g_xsize;
  4. extern int _g_ysize;
  5. extern int _g_colors;
  6. extern int _g_pages;
  7.  
  8. extern int _g_clipx0;
  9. extern int _g_clipy0;
  10. extern int _g_clipx1;
  11. extern int _g_clipy1;
  12.  
  13. extern int _g_locklevel;
  14.  
  15. extern unsigned char *_g_mem;
  16.  
  17. int _ggetmode (void);
  18. void _gsetmode (int mode);
  19.  
  20. #define GLOCK \
  21.   do \
  22.     if (_osmode == OS2_MODE && _g_locklevel == 0) \
  23.       { \
  24.         BYTE not_locked; \
  25.         VioScrLock (LOCKIO_WAIT, ¬_locked, 0); \
  26.       } \
  27.     while (0)
  28.  
  29. #define GUNLOCK \
  30.   do \
  31.     if (_osmode == OS2_MODE && _g_locklevel == 0) \
  32.       VioScrUnLock (0); \
  33.     while (0)
  34.