www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/04/08:39:36

From: Damian Yerrick <MYNAMEISd_yerrick AT hotmail DOT comNO2CANNEDHAM>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: My program's a machine killer!
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <plhj9scvq9k0emk8u5bd6scruq44hckr8p@4ax.com>
References: <2d1m4.294$oU2 DOT 94919 AT tw12 DOT nn DOT bcandid DOT com> <38993907$1 AT news DOT uni-bielefeld DOT de>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 40
X-Trace: +r2abhkxWTbInvEoW40cJRSvZBZNGQJzqsgn7YjWoY1IqMK/ZxcZd0rAUeO5vMwa5lwHh1zmrKOc!RIELvQ5fjrZo6BHOs8HE2kpsO9BMi3aPxdX66Z0HaJEKN3gtv7pf5Bqdgc8xg5N7oVTCQ1bJeg==
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Thu, 03 Feb 2000 18:24:55 GMT
Distribution: world
Date: Thu, 03 Feb 2000 18:24:55 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Thu, 03 Feb 2000 08:14:59 GMT, manni DOT heumann AT gmx DOT de (Manni Heumann)
wrote:

>In article <2d1m4.294$oU2 DOT 94919 AT tw12 DOT nn DOT bcandid DOT com>, "Brian" <none AT noemail DOT com> wrote:
>>When I run the short little program below, my PC reboots. I don't have VESA
>>so I set my graphics mode to VGA 320x200. I don't know if this is a problem.
>>(SciTech wouldn't work with my machine) Can anyone spot the problem on the
>>code below? Specifically the clear_to_color() function. I'm just trying to
>>load a list box and turn the background color to black. I'm new to graphics
>>programming, so if there's an easier way to do this, please tell.
>
>[SNIP]
>
>>int main(int argc)
>>{
>>    int ret;
>>
>>    allegro_init();
>>    install_keyboard();
>>    set_gfx_mode(GFX_VGA, 320, 200, 0, 0);
>>    clear_to_color(screen, 0);
>>    ret = do_dialog(the_dialog, -1);
>>
>>    readkey();
>>    return 0;
>>}
>
>I'm not really sure if that is your problem (or your only problem), but you 
>should also call install_mouse() and install_timer(). The dialogs need a mouse 
>and the mice need timers.

If this were so, then Allegro would not be accessible software. On the
other hand, the dialogs in the latest WIP also work with any keyboard
that has a TAB key, but the keyboard also needs a timer.

-- 
Damian Yerrick  http://yerricde.tripod.com/
Comment on story ideas: http://home1.gte.net/frodo/quickjot.html
AOL is sucks! Find out why: http://anti-aol.org/faqs/aas/
View full sig: http://www.rose-hulman.edu/~yerricde/sig.html

- Raw text -


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