Mail Archives: djgpp/1997/07/15/21:34:38
Grzegorz Hankiewicz wrote:
> I've managed to switch the text resolution to 80x50 with this program (a
> lot of thanks to Ivan Baldo for his help)
> But if you run it with the MS-DOS box maximized, or directly from pure
> MS-DOS, the characters look like halved.
> Does someone know how to avoid this or change the characters to make them
> smaller?
Yes -- change the font. I forget the exact details of doing this, but
you mostly need to copy the font into the djgpp transfer buffer (it's
"__tb"), then call a bios function which reads and sets the font.
My code for this isn't with me right now, so I can't give an example.
If you have Ralph Browne's Interrupt List (good reference), or "Font
Mania", they both can tell you how. Another useful text is the djgpp
FAQ, which explains how to call bios interrupts which require a pointer
to data (as this does).
-- Scott Scriven "May farce the with be you."
mailto:scriven AT CS DOT ColoState DOT edu
mailto:scriven AT VIS DOT ColoState DOT edu
http://www.vis.colostate.edu/~scriven/
- Raw text -