delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/03/08:36:00

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro - textmode() help
Date: Sun, 31 Aug 1997 01:51:07 +0100
Organization: None
Distribution: world
Message-ID: <uuxo$HA7$LC0Ewuh@talula.demon.co.uk>
References: <01bcb423$03ef4a00$5905a8c0 AT grunt>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 20
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Michael McPheat writes:
>Does the textmode function work?

Yep.

>I am wanting to use textmode(-1) to use transparent text but when I set
>textmode() to any value I get a protection violation and subsequent program
>termination. 

That should be text_mode(), not textmode(). The version withuot an
underscore is a libc conio function for setting a text screen mode.
Confusing, I know, and I really should have called the Allegro function
something else, but the font stuff is one of the most ancient parts of
Allegro and dates back many years to the Atari ST, where there was no
such thing as a conio for it to conflict with :-)


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.

- Raw text -


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