home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c220 / 4.ddi / EXAMPLES / GFX_TEST.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-16  |  1.1 KB  |  35 lines

  1. #include "gfx.h"
  2.  
  3. typedef int BOOL, INT;
  4. typedef char TINY, TEXT;
  5. #define LOCAL   static
  6. #define then
  7. typedef double DBL;
  8. typedef unsigned int  UINT;
  9. int     _gfx_call_dos(int, int);
  10. void free(char *);
  11. int     _set_w2_ega_mode(void);
  12. int     _set_ega_modify_type(int);
  13. #define is_an_ega_mode()        (_gfx.bios_mode >= _EGA_MED_RES)
  14. typedef  struct { unsigned long  eax;
  15.                   unsigned long  ebx;
  16.                   unsigned long  ecx;
  17.                   unsigned long  edx;
  18.                   unsigned long  esi;
  19.                   unsigned long  edi;
  20.                   unsigned long  exflag;
  21.                   UINT  es;
  22.                   UINT  fs;
  23.                   UINT  gs;
  24.                 } REG_EX;
  25.  
  26. #define HIGH_RES        0x2
  27.  
  28. #define YES             1
  29. #define NO              0
  30. #define turn_on_ega()           if (is_an_ega_mode()) then _gfx.xor_pel ? _set_ega_modify_type(3) : _set_w2_ega_mode();
  31. int _gfx_delete_file(char *);
  32. int _gfx_get_color(int );
  33. int     _gfx_call_bios(int, char *, char *);
  34. #define inrange(a,x,b)  ((a) <= (x) && (x) <= (b))
  35.