If you are using DXGL it is currently a bug in how it handles direct writes to the primary surface, which Allegro does a lot of when drawing the UI elements. Try not forcing Vsync in either the control panel or DXGL settings.