Category : C Source Code
Archive   : TCEGA.ZIP
Filename : GPWINDOW.C
Output of file : GPWINDOW.C contained in archive : TCEGA.ZIP
/* EGA Graphic Primitive for Turbo Pascal 3.01A, Version 01FEB86. */
/* (C) 1986 by Kent Cedola, 2015 Meadow Lake Ct., Norfolk, VA, 23518 */
/* */
/* Description: Set the current window coordinates. */
/* */
void GPWINDOW(x1,y1,x2,y2)
int x1,y1,x2,y2;
{
extern int GDWD_X1,GDWD_X2,GDWD_X3;
extern int GDWD_Y1,GDWD_Y2,GDWD_Y3;
extern char GDW_FLG;
register i;
if (x1 > x2)
{
i = x1;
x1 = x2;
x2 = i;
};
if (y1 > y2)
{
i = y1;
y1 = y2;
y2 = i;
};
GDWD_X1 = x1;
GDWD_Y1 = y1;
GDWD_X2 = x2;
GDWD_Y2 = y2;
GDWD_X3 = x2 - x1 + 1;
GDWD_Y3 = y2 - y1 + 1;
GDW_FLG = 1;
};
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
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/