Note that the first two lines are the screen resolution, the true/false in the third line is for fullscreen. Using 1008 rather than 1024 solved the "black screen on startup" problem in my case. Adjust resolution accordingly.
Run in 640x480 resolution
Run this program as an Administrator