Message-ID: <33FE344A.68B9@oregoncoast.com> Date: Fri, 22 Aug 1997 17:52:26 -0700 From: Rudy Gingles Reply-To: spy AT oregoncoast DOT com Organization: Atek Systems MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Why wont this work?? - Allegro References: <01bcabb4$8f472a40$LocalHost AT home-computer> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: rm52.oregoncoast.com Lines: 43 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Jamie Love wrote: > > I'm trying to get the mode selection of the allegro gfx library to work > (and the mouse) but i cannot seem to get it to work. The code follows but > it seems to do everything up to the showing of the gui selection function > and then stops. A have to ctrl-break out of it. (i'm linking alright as i > don't get any compile/link errors) > > #include > > main() > { > int *card=0, *w=0, *h=0 > > allegro_init(); > > install_timer(); > > if(install_mouse() < 0) > return(1); > > if(set_gfx_mode(GFX_VGA, 320, 200, 0, 0) < 0) > return(1); > > show_mouse(screen); > > gfx_mode_select(card, w, h); //stops here > } > > Please help, it worked earlier today, it doesn't seem to want to now. > > I'm also running this under rhide which is running under Win95 > -- > J Love > jamie DOT love AT clear DOT net DOT nz What if you tried defining card, w, and h as regular variables (not pointers) and call gfx_mode_select() like this: gfx_mode_select(&card, &w, &h); Rudy