Mail Archives: djgpp/1997/10/19/14:33:53
On Thu, 16 Oct 1997 17:32:42 GMT in comp.os.msdos.djgpp Grzegorz Adam Hankiewicz (gregorio AT jet DOT es) wrote:
: >I am using allegro
: >I change to graphics mode with set_gfx_mode(GFX_AUTODETECT,640,480,0,0);
: >then I change to text mode with set_gfx_mode(GFX_TEXT,80,25,0,0);
: >but I use the function clrscr() and it does not work.
: >
: >I am doing anything wrong ?
: Yes. All of Allegro's function are written ONLY for graphical modes,
: like 320x200, 640x480, etc. The GFX_TEXT mode is there only to come
: back to text mode when your program using graphics has ended.
... however, clrscr() is a conio function, right? :)
To the original poster: Try calling textmode (the conio function) after telling
Allegro to restore text mode. I'm not sure whether this will help, though.
--
George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
Merton College, Oxford
- Raw text -