Mail Archives: djgpp/2001/09/30/19:49:10
From: | "Matthew Smith" <matt AT the-good-stuff DOT freeserve DOT co DOT uk>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Allegro - switching mode
|
Date: | Mon, 1 Oct 2001 00:47:18 +0100
|
Lines: | 36
|
Message-ID: | <9p8abl$222$1@newsg4.svr.pol.co.uk>
|
References: | <9p04tg$82$1 AT news DOT tpi DOT pl>
|
NNTP-Posting-Host: | modem-326.ballistic.dialup.pol.co.uk
|
X-Trace: | newsg4.svr.pol.co.uk 1001893045 2114 62.25.137.70 (30 Sep 2001 23:37:25 GMT)
|
NNTP-Posting-Date: | 30 Sep 2001 23:37:25 GMT
|
X-Complaints-To: | abuse AT theplanet DOT net
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Newsreader: | Microsoft Outlook Express 5.50.4522.1200
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4522.1200
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
I've done exactly the same as you, switching to GFX_TEXT first.
It sometimes helps, but I find it's hit and miss.
Switching modes is not really kosher Allegro.
I would recommend making it optional in any program.
There's a new mode selector in the latest 3.9.38 WIP, I'm going to
have a look at that ASAP
Matt
"Raf256" <raf256 AT go2 DOT pl> wrote in message
news:9p04tg$82$1 AT news DOT tpi DOT pl...
> How to switch graph mode ?
>
> /* ... code that installs mouse, keyboard and SVGA */
> /* ... using graph / mouse */
> /* ... but NO timers / interrupts */
>
> show_mouse(NULL);
> remove_mouse();
> set_gfx_mode(GFX_TEXT,80,25,0,0); // turns OFF graph mode
>
> set_color_depth(8);
> set_gfx_mode(GFX_AUTODETECT,640,480,0,0);
> clear_to_color(screen, makecol(255,255,255));
> install_mouse();
>
> This doesn't work :( why ?
>
> --
> Raf256
>
>
- Raw text -