home *** CD-ROM | disk | FTP | other *** search
- What it is:
- A BGI driver to make use of the 256-colour modes on cards that
- use the TSENG 4000 chipset.
- The modes supported are:
-
- Resolution BIOS mode
- ------------ ---------
- 640x400x256 0x2F
- 640x480x256 0x2E
- 800x600x256 0x30
- 1024x768x256 0x38
-
- Problems:
- There are some problems that result from the BGI interface
- insisting on there only being 16 color in a palette. For example,
- when the driver code for the function 'setallpalette' is finally
- called, a max of 16 bytes are passed to this function (even if
- the size was specified as being larger in the struct passed).
- The 'getpalette' routine also returns only 16 bytes; these seem
- to come from some internal buffer.
- However, the function 'setrgbpalette' does work as would be expected.
- Thus, if you want to make use of 256 colors, you will either have to
- write your own function to set all 256 colours at once (easy to do),
- or make successive calls to the 'setrgbpalette' function, and each
- time specify one RGB triplet.
- The 'getdefaultpalette' returns triplets in the *current* palette set.
-
- Demo file:
- Borland's demo file "BGIDEMO.C" can easily be modified to make
- use of this driver.
-
- 1) Somewhere near the start of the program, add the following
- function prototype:
-
- int huge Tseng4Mode(void);
-
- 2) In the routine 'Initialize' just before the line
-
- GraphDriver = DETECT;
-
- add
-
- driver =installuserdriver ("TSENG4", Tseng4Mode);
-
- 3) At the end of the file, add the following, and simply
- uncomment the appropriate 'return' line.
-
- #define Mode640x400 0
- #define Mode640x480 1
- #define Mode800x600 2
- #define Mode1024x768 3
-
- int huge Tseng4Mode(void)
- {
- /* return(Mode640x400); /**/
- /* return(Mode640x480); /**/
- return(Mode800x600); /**/
- /* return(Mode1024x768); /**/
- }
-
- Shareware:
- This program is distributed as shareware; see the file REGISTER.DOC
-
- Disclaimer:
- This file is distributed WITHOUT ANY WARRANTY; without even the
- implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- PURPOSE.
-
- Bug reports and/or suggestions to:
- stuart@coral.cs.jcu.edu.au
-
-