Category : C Source Code
Archive   : PCGRAPH.ZIP
Filename : EGA.H

 
Output of file : EGA.H contained in archive : PCGRAPH.ZIP
/**
* e g a . h
* ---------
**/

/**
* definiton of hardware-dependent constants:
**/
#define GREEN 1 /* color green */
#define MAX_X 640 /* Num. x-pixel */
#define MAX_Y 350 /* Num. y-pixel */
#define X_LOW 0 /* lowest x valid coordinate */
#define X_HIGH 639 /* highest x valid coordinate */
#define Y_LOW 0 /* lowest y valid coordinate */
#define Y_HIGH 349 /* highest y valid coordinate */
#define BYGRAFP 128 * 1024L /* Num. bytes for graphics page */
#define BYTEXTP 80 * 25 * 2 /* Num. bytes for text page */
#define EGAGRAF 1 /* EGA library */

#define initgraf(x) setmode(0xf) /* for compatibility with the */
#define exitgraf(x) setmode(7) /* previous hercules library. */


  3 Responses to “Category : C Source Code
Archive   : PCGRAPH.ZIP
Filename : EGA.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/