Category : Miscellaneous Language Source Code
Archive   : SVGABG31.ZIP
Filename : SVGA32K.H

 
Output of file : SVGA32K.H contained in archive : SVGABG31.ZIP
/************************************************/
/* */
/* SuperVGA 32768 BGI driver defines */
/* Copyright (c) 1991 */
/* Jordan Hargraphix Software */
/* */
/************************************************/

extern int far _Cdecl Svga32k_fdriver[];

/* These are the currently supported modes */
#ifndef SVGA320x200x32768
#define SVGA320x200x32768 0 /* 320x200x32768 HiColor VGA */
#define SVGA640x350x32768 1 /* 640x350x32768 HiColor VGA */
#define SVGA640x400x32768 2 /* 640x400x32768 HiColor VGA */
#define SVGA640x480x32768 3 /* 640x480x32768 HiColor VGA */
#define SVGA800x600x32768 4 /* 800x600x32768 HiColor VGA */
#endif

#ifndef XNOR_PUT
#define XNOR_PUT 5
#define NOR_PUT 6
#define NAND_PUT 7
#define TRANS_COPY_PUT 8 /* Doesn't work with 16-color drivers */
#endif

#define RGB(r,g,b) ((r & 31)<<10) | ((g & 31)<<5) | (b & 31)

int RealDrawColor(int color)
{
if (getmaxcolor() > 256)
setrgbpalette(1024,(color>>10)&31,(color>>5)&31,color&31);
return(color);
}

int RealFillColor(int color)
{
if (getmaxcolor() > 256)
setrgbpalette(1025,(color>>10)&31,(color>>5)&31,color&31);
return(color);
}

int RealColor(int color)
{
if (getmaxcolor() > 256)
setrgbpalette(1026,(color>>10)&31,(color>>5)&31,color&31);
return(color);
}


  3 Responses to “Category : Miscellaneous Language Source Code
Archive   : SVGABG31.ZIP
Filename : SVGA32K.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/