www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/25/10:34:56

From: "Chaos" <chengin AT alpha DOT net DOT pl>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: fprintf() and using under graphic modes
Date: Wed, 24 Nov 1999 13:25:34 +0100
Organization: Chaos Engine
Lines: 41
Message-ID: <81hnbm$7jq$3@portraits.wsisiz.edu.pl>
References: <F77915E7F086D31197F4009027CC81C90DB7DF AT probe-2 DOT as-london DOT acclaim DOT com>
NNTP-Posting-Host: pa164.warszawa.ppp.tpnet.pl
X-Trace: portraits.wsisiz.edu.pl 943481014 7802 212.160.52.164 (24 Nov 1999 22:03:34 GMT)
X-Complaints-To: abuse AT news DOT wsisiz DOT edu DOT pl
NNTP-Posting-Date: 24 Nov 1999 22:03:34 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.1
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Shawn Hargreaves napisał(a) w wiadomości: ...
>Eli Zaretskii writes:
>> If your BIOS supports text output in the graphics
>> mode you are using, it will work.
>
>Yup. But in my experience only about 50% of VESA implementations have
>that support, so it is a bad thing to rely on.
>
>> One way of telling if the particular mode is supported by the BIOS is
>> to call the DJGPP functions ScreenRows() and ScreenCols() and compare
>> their results with the number of text rows and columns for the
>> graphics mode you switched into (which you need to know in advance).
>
>I think it would be more robust to read this directly from the VESA
>driver: this can be found in the mode information structure, where
>the ModeAttributes field will have bit 2 set if TTY output is available.
>As a quick test, run the Allegro "vesainfo -v" program, and see whether
>it prints "tty" as part of the ModeAttributes value for the resolution
>you are interested in.

That's a very valuable information!!
Thank you very much for that. All is need to be done is to check if this
condition is true, and then decide to use fprintf or
self_made_drawing_texts_func.

>
>
> Shawn Hargreaves.

3mcie sie.
-=| Chaos |=-
e-mail:  chengin AT alpha DOT net DOT pl
              chengin AT polbox DOT com
_______________________________________________
The statistics on sanity are that one out of every four people is
suffering from some form of mental illness. Think of your three best
friends. If they are okay, then it's you.
_______________________________________________


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019