www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/24/22:35:18

From: "Damian Yerrick" <NOSP AT Musenet@pineight.8m.com>
Newsgroups: comp.os.msdos.djgpp
References: <F77915E7F086D31197F4009027CC81C90DB7DF AT probe-2 DOT as-london DOT acclaim DOT com> <81hnbm$7jq$3 AT portraits DOT wsisiz DOT edu DOT pl>
Subject: Re: fprintf() and using under graphic modes
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Message-ID: <xY1%3.1968$lT.32756@dfiatx1-snr1.gtei.net>
X-Trace: /Kw5eCNmk6MbzvsaTCYumeiCtRWEajaR/lTCqLcS9g2aF4iFB9iBJJHUAzRNPZO3H2wnSWpcmc/d!bGlefSThPTCm1hKcNH0gNBM7P3yMF7auHvymEtLTSo599v6PPOuwbkiGIyAGhrurrQf4
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Thu, 25 Nov 1999 03:23:09 GMT
Distribution: world
Date: Thu, 25 Nov 1999 03:23:09 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Chaos" <chengin AT alpha DOT net DOT pl> wrote:
>
> Shawn Hargreaves napisał(a) w wiadomooci: ...
> >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.

The condition you need to check is
  if(1)
    self_made_drawing_texts_func()
  else
    printf_family_function()


Damian Yerrick


- Raw text -


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