Mail Archives: djgpp/1997/07/04/02:11:40
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 -