Mail Archives: djgpp/1996/01/21/03:24:06
Robert Henry (robhenry AT atl DOT mindspring DOT com) wrote:
..... Beginning deleted .....
: We need a portable way to set the graphics page that does not rely on
: the bios.
: I was working with a different compiler so I could not use drivers or
: any kind of code that is linked at run time, I tried to figure out a
: way to tell my program what registers to write to in a configuration
: file. I got it to work for two cards, here is the code and 2
: configuration files.
..... Somemore deleted ......
: I know you would prefer I just told you what data to write to what
: register, but I can't remember that.
: I too would like this type of information about any video card you
: research. I esspecially need info on S3 chips.
...... Rest deleted ......
Those with OS/2 could use the file generated by the svga program in order
to obtain the information on how to set the mode on the video card.
Alternatively look at the source files used by the old grx library for
djgppv1.12. These files can be obtained from either djgppv1.12 distribution,
or for more drivers, display v1.88 distribution. This can be found in any
simtel archive under msdos/graphics/disp188?.zip. There are two files to
the distribution disp188a.zip and disp188b.zip. I think you find that the
source to the graphic drivers are in the second archive.
Why not write your code on top of the GRX library anyway. This has been
written so that it would work under djgpp, and Linux. Looking at the
X11 source files for Linux is another means to finding out how to set the
graphics mode for a particular chipset. Indeed, I used this for writing
code to detect the graphics card I had.
Hope this helps
Robert.
- Raw text -