Wed, 18 Jun 1902 08:00:00 GMT
Graphics in text mode
In article <344FB276.1...@rocketmail.com>, QuoteFaNt0m <fan...@rocketmail.com> wrote: >Doug Lurie wrote: >> Tim Boswell <t...@stealthmail.com> wrote in article >> <344F9B78.6...@stealthmail.com>... >> > Does anyone have any ideas on how to get a small graphic(about 32x32 >> pixels) >> > into a tp program in text mode? My solution to date has been to create a >> new >> > DOS font, and design the icon by editing a few extended characters, but >> this >> > is obviously not an ideal solution. Any help would be appreciated >> I, too, would like to know of a better method. Unfortunately, by the nature >> of the beast, text mode requires a text font for display. However, this >> would not be a really bad thing, except that space that the BIOS puts into >> most letters severly limits how many characters that you can change. >Well, in my opinion i would do like they do in the most recent bios's. >When you boot up you usually see some logo like the engery thingy fade >out, that is text mode and thats hwo i woudl do it. First just change >some foriegn letters to the graphic and then just change the colour of >the character >FaNt0m
What you are seeing when the computer boots up is actually graphics mode. The mode is set to VGA (640x480x16c). After the pic has faded out, the screen is set to text mode. On newer machines this happens so quickly that you hardly notice. On older machine you could see a minor flicker when the mode was changed. It is impossible to have the screen in both graphics and text mode. The memory address of the text mode starts in the 0b000h (or 0b800h) segment. Graphics memory starts at 0a000h. Because the graphics controller cannot change the address it is scanning from until a reset, the best you would be able to do is one frame be text and the next frame be graphics. One reason the above proposed method won't work is because you can only get one or two colours per character. This makes it difficult to do any decent looking graphics in text mode... although the Future Crew did do some neaat things in text mode :). The best solution is to use 640x480x16c or 640x480x8bpp and use the ROM font to simulate text mode. --Mark Iuzzolino one of the mons...@monstersoft.com | "Who do you want to kill today?" http://www.monstersoft.com
|