www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/09/05:22:07

Xref: news2.mv.net comp.os.msdos.djgpp:3612
From: nmarrone AT smartlink DOT net (Nicholas Marrone)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro and Dialogues
Date: Thu, 09 May 1996 02:38:46 GMT
Organization: SmartLink.net Premier ISP 805-294-1273
Lines: 26
Message-ID: <4mrm0s$2qc@frodo.smartlink.net>
References: <4mgu9h$1b9 AT frodo DOT smartlink DOT net> <4mh9rd$lfo AT freenet-news DOT carleton DOT ca>
NNTP-Posting-Host: pm42-52.smartlink.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) wrote:

>> 	I am once again having trouble with the dialouges in Allegro because
>> of my inexperience with it. I have been trying to display a bitmap
>> while staying in the main dialogue. I've been able to do this, but
>> allegro refreshes the bitmap constantly, and the sprites over it
>> causing a lot of flickering. The way I've done this is by making a
>> function in a dialouge list that displays a bitmap and all the sprites
>> over it. I just want to display it all once, though, not constantly.
>> Any suggestions? I want to stay in the dialouge so that it will update
>> buttons, lists, and other stuff like that. Any help appreciated.

>Do you call the function to display the bitmaps once, or are you perhaps
>accidentally calling it every time something happnes, like every time the
>mouse pointer moves, or something?


I figured this problem out. I've discovered that once Allegro calls
the do_dialog function, it just keeps on going through the dialogs in
it's free time. So, if in one of the dialog functions you are
displaying something, it will re-draw it every time it goes through
the dialog. I've solved it by only having it draw if a flag is set.

	nicholas


- Raw text -


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