Mail Archives: djgpp/2000/07/22/19:45:58
On Sat, 22 Jul 2000 13:07:29 +0100, Jason Green
<news AT jgreen4 DOT fsnet DOT co DOT uk> wrote:
>void set_video_mode(int mode)
>{
> __dpmi_regs regs;
> regs.x.ax = mode & 0xFF;
> __dpmi_int(0x10, ®s);
>}
>
>If you cycle through possible values of mode and use conio functions
>to get the screen dimensions you will probably find all sorts of weird
>text modes that your card is capable of. Some modes will cause
>lock-ups, so it's best to log the results to a file and open/close it
>between each mode switch, and be prepared for reboots.
I don't think users will be prepared for reboots.
>However, there is one mode that would be a useful addition to DJGPP,
>if someone could work out how to implement it. 80x60 chars is listed
>in the Linux LILO docs as one of the standard VGA text modes and is
>achieved using a 640x480 pixel variation of the 80x50 char text mode
>(normally 640x400 pixels).
Try 80x50 mode with the 640x480 mode's vertical timing values.
Look up
>Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> wrote:
>
>> I know 80x117 can be done with EGA and standard VGA (go to 350
>> scanline text mode and knock the character height down to 3
>> scanlines).
>
>Out of interest, what possible use is a 3 pixel high font?
Splitting each character in half horizontally with character 222 gives
a 160x117 pseudo-graphical mode with square pixels.
>Does the DOS command line behave itself if you switch to this mode?
I switch back to 80x25 or 80x50 on close; it doesn't matter.
--
Damian Yerrick
"I refuse to listen to those who refuse to listen to reason."
See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html
This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses. http://www.mcafee.com/
- Raw text -