Mail Archives: djgpp/1996/05/09/05:22:07
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 -