[AD] another bug

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Hello,
  I'm here to report what (for me) seems like a "bug".
  Ok, here it goes. I'm working with allegro and DJGPP (DOS, not RSDXDJ (or whatever it name is),
  Cygnus, etc).
  Well, the bug is in the allegro_message function.
  What happens is this:
     let's assume that I write this code:
        allegro_init();
        allegro_message("\nXXXX version %d.%d\n", hiversion, loversion);
        allegro_message("  Copyright (c) 2000 XXXX\n\n");
        allegro_message("  Initializing, please wait...\n");
        readkey();
     this, should do (and do) the following:
        prints in the console:
            XXX version 0.0
              Copyright (c) 2000 XXX
 
               Initializing, please wait...
        and the user press a key and continues
        ok, but now change that last string and delete the last '\n'
        then this is what allegro does:
        prints in the console:
            XXX version 0.0
              Copyright (c) 2000 XXX
 
        but here stops for the key and doesn't print the last message! it prints it later!
               Initializing, please wait...
 
    Did I do something wrong or it's a bug as i thought?
 
Thank you very much


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/