[AD] Possible bug with Windows

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


    After talking to allefant on IRC, I am writing to report what may possibly be a bug in creating windowed allegro programs in Visual C++ 6.0 (Windows XP).
 
    My program uses the following code,  and I have found that whenever the set_gfx_mode is GFX_AUTODETECT_WINDOWED and at the same resolution as my windows desktop,  the program crashes and gives me access violations. 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <allegro.h>
 
int main(void)
{
 
  allegro_init();
 
  install_keyboard();
 
  set_color_depth(32);
 
  text_mode(makecol(0,0,255));
 
  set_gfx_mode(GFX_AUTODETECT,640,480,0,0);
 
  textout_centre(screen,font, "HELLLO", 320, 240, makecol(255,255,0));
 
  putpixel(screen,100,100,makecol(255,0,0));
  readkey();
 
  return 0;
}
END_OF_MAIN();
    Thanks!
 
John
 


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