Xref: news-dnh.mv.net comp.os.msdos.djgpp:4565 Newsgroups: comp.os.msdos.djgpp From: R DOT Jaycocks1 AT lut DOT ac DOT uk (Robert Jaycocks) Subject: Re: Need testers for Allegro 2.0 Sender: usenet AT lut DOT ac DOT uk (Usenet-News) Message-ID: Date: Fri, 19 Jan 1996 21:53:21 GMT References: <4dmqpg$12f8 AT stealth DOT mindspring DOT com> Organization: Loughborough University, UK. Lines: 39 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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.