From: "Ingo Ruhnke" Newsgroups: comp.os.msdos.djgpp Subject: Allegro Problem, maybe a bug Date: 14 Nov 1997 20:15:12 GMT Organization: Telemedia News Server Lines: 50 Message-ID: <01bcefa1$1dd36e60$0200a8c0@ingo> NNTP-Posting-Host: gtso-m71-218.pool.mediaways.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi I had a problem with Allegro2.2, every time i use the alert() funtion the textout() function gets another background color, from black to with and vice versa, and i don't know how to change the background color of the text output. Here is a example Programm which demonstrate the problem: /* PRG BEGIN */ #include int main() { RGB grey[256]; int i; int c; allegro_init(); install_keyboard(); install_timer(); install_mouse(); set_gfx_mode(GFX_VGA, 320, 200, 0,0); for(i=0; i<256; ++i) grey[i].r = grey[i].g = grey[i].b = i/4; show_mouse(screen); set_palette(grey); while( ((c = readkey()) >> 8) != KEY_Q) { textout_centre(screen, font, "BAR", 160, 20,155); alert("Bla", "Blub", "Boing", "ok", "cancel", 'o', 'c'); } allegro_exit(); return 0; } /* PRG END */ If you know hit a key and exit the alert-dialog by pressing a button and then reenter the dialog you will notice that the color of the text BAR has changed. But this only happens if the dialog is exited by using the mouse, if you use the keyboard the color is changed to the default. Any ideas, should i get Allegro WIP? Ingo -- Ingo Ruhnke ruhnke AT owl-online DOT de http://www.geocities.com/SiliconValley/Horizon/2159/