www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/04/02:11:40

From: Vic <tudor AT cam DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro: Video mode changing
Date: Sun, 29 Jun 1997 21:17:42 -0400
Organization: Communications Accesibles Montreal
Lines: 30
Message-ID: <33B70936.197F@cam.org>
References: <33B6F085 DOT 600A9C46 AT CS DOT colostate DOT edu>
Reply-To: tudor AT cam DOT org
NNTP-Posting-Host: dynppp-63.hip.cam.org
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

SerDevian wrote:
> Has anyone had any problems changing from one graphics mode to another
> in Allegro programs?  Is there any sort of odd procedure to follow to do
> this?  How should I go about doing this?
There is no problem with changing modes. The problem is somewhere else.
the program attached works fine...
#include <allegro.h>
main()
{
allegro_init();
set_gfx_mode(GFX_AUTODETECT,320,200,0,0);
textout_centre(screen,font,"resolution
320X200",SCREEN_W/2,SCREEN_H/2,5);
delay(2000);
set_gfx_mode(GFX_AUTODETECT,640,480,0,0);
textout_centre(screen,font,"resolution
640X480",SCREEN_W/2,SCREEN_H/2,5);
delay(2000);
set_gfx_mode(GFX_AUTODETECT,800,600,0,0);
textout_centre(screen,font,"resolution
800X600",SCREEN_W/2,SCREEN_H/2,5);
delay(2000);
}

-- 
--> http://www.cam.org/~tudor <--
prick your finger it is done
the moon has now eclipsed the sun
the angel has spread it's wings
the time has come for bitter things

- Raw text -


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