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

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

(* These are the currently supported modes *)
const
SVGA320x200x32768 = 0; (* 320x200x32768 HiColor VGA *)
SVGA640x350x32768 = 1; (* 640x350x32768 HiColor VGA *)
SVGA640x400x32768 = 2; (* 640x400x32768 HiColor VGA *)
SVGA640x480x32768 = 3; (* 640x480x32768 HiColor VGA *)
SVGA800x600x32768 = 4; (* 800x600x32768 HiColor VGA *)

XNOR_PUT = 5;
NOR_PUT = 6;
NAND_PUT = 7;
TRANS_COPY_PUT = 8; (* Doesn't work on 16-color systems *)

function RGB(R,G,B : Word) : Word;
begin
RGB := ((R and 31)SHL 10) OR ((G and 31)SHL 5) OR (B and 31);
end;

function RealDrawColor(Color : Word) : Word;
begin
if (GetMaxColor > 256) then
SetRgbPalette(1024,(Color SHR 10) AND 31,(Color SHR 5) AND 31,Color AND 31);
RealDrawColor := Color;
end;

function RealFillColor(Color : Word) : Word;
begin
if (GetMaxColor > 256) then
SetRgbPalette(1025,(Color SHR 10) AND 31,(Color SHR 5)AND 31,Color AND 31);
RealFillColor := Color;
end;

function RealColor(Color : Word) : Word;
begin
if (GetMaxColor > 256) then
SetRgbPalette(1026,(Color SHR 10) AND 31,(Color SHR 5)AND 31,Color AND 31);
RealColor := Color;
end;


  3 Responses to “Category : Miscellaneous Language Source Code
Archive   : SVGABG31.ZIP
Filename : SVGA32K.INC

  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/