delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/22/19:50:17

From: "Jamie Love" <jamie DOT love AT clear DOT net DOT nz>
Newsgroups: comp.os.msdos.djgpp
Subject: Why wont this work?? - Allegro
Date: 19 Aug 1997 08:12:34 GMT
Organization: CLEAR Net
Lines: 33
Message-ID: <01bcabb4$8f472a40$LocalHost@home-computer>
NNTP-Posting-Host: d1-u31.napr.clear.net.nz
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

- Raw text -


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