Hello everyone, I need to run Allegro 4.2 for legacy and I am running Windows 7 32-bit. The programs run super slow and are prone to crashing. The same programs run fine in Windows XP and on another Windows 7 box (64 bit). Any ideas what I can do to fix my issue?
The problem might be caused by badly written code, so perhaps you should post it.
Well, I doubt it since it is a simple demo app:
How do you know that runs slowly? It's not doing anything... Does it crash?
Do you always use 8-bit graphics? Those are known to not work well under Windows 7.
The best way to get good performance is:
set_color_depth(desktop_color_depth());
Also, Allegro 4.4 might work better. It's source compatible with 4.2.
One last thing, make sure the Allegro libraries/binaries you use are for your specific compiler version (not a problem if you built it yourself) and that you use the same C or assembly settings during build, as mixing those can cause crashes.
Thanks Matthew, setting the color depth made the program work great. The only problem there is that my primitives are rendered a very dark, almost black color no matter what color I pass in for them.
Any ideas?
Try using makecol instead of passing 15 as the color?