Mail Archives: djgpp/1997/08/23/02:19:36
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 <allegro.h>
>
> 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
- Raw text -