From: SerDevian Newsgroups: comp.os.msdos.djgpp Subject: Allegro: Video mode changing Date: Sun, 29 Jun 1997 17:32:21 -0600 Organization: XYZZ Software Co. Lines: 31 Message-ID: <33B6F085.600A9C46@CS.colostate.edu> NNTP-Posting-Host: ts4214.slip.colostate.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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? For me, using set_gfx_mode() works the first time, but crashes each time after that. (causes the computer to reboot) It works if I only call it once per program, though. Information which might matter: The first call works fine, no matter what mode I set. The second mode set is made like this (called from a pull-down menu): int ChangeRes_proc() { int card, w, h; if(gfx_mode_select(&card, &w, &h)) { if(set_gfx_mode(card,w,h, 0,0)) { allegro_exit(); printf("Error setting graphics mode.\n%s\n\n", allegro_error); exit(1); } } return D_CLOSE; } -- Scott Scriven "May farce the with be you." mailto:scriven AT CS DOT colostate DOT edu mailto:scriven AT VIS DOT colostate DOT edu http://www.VIS.colostate.edu/~scriven/