So all of a sudden i can't create a display anymore. The display flickers a bunch of times and returns null on the display variable every time.
Also i am using visual studio 2017
Have the allegro packages installed from NuGet
Try linking the debug version of Allegro (in the project options), running it and then seeing if the allegro.log file contains anything useful. The log file will be generated somewhere in your project directory.
It sounds to me like your display is not able to use the resolution you selected. Try a different resolution, does it do the same thing? 800x600? 640x480? Perhaps a higher resolution, one that matches your display?
Also, try different display modes to see which one works...
al_set_new_display_flags(ALLEGRO_WINDOWED); // al_set_new_display_flags(ALLEGRO_FULLSCREEN_WINDOW); // al_set_new_display_flags(ALLEGRO_FULLSCREEN); display = al_create_display(1280, 720); if (display == NULL) { al_show_native_message_box(NULL, "Error!", "Allegro has failed to initialize.", 0, 0, ALLEGRO_MESSAGEBOX_ERROR); exit(1); }
...try those three modes out, see what works and with different resolutions.
So i noticed that it was an installed program that is causing that function call to bug out.
The program is called Duet Display which allows duel screen using an ipad. When this program is installed that function call no longer works
I would like to report this somehow but don't know how to go about it
In the project options, there'll be an Allegro tab where you can select the library type. Just select the debug version there.
The program is called Duet Display which allows duel screen using an ipad. When this program is installed that function call no longer works
That's pretty interesting... could you still do the debug + log thing, maybe it'll be something useful. For Allegro bugs, you can report them here: https://github.com/liballeg/allegro5/issues