A (now confirmed) fix for a screen resolution problem in cygwin.

This code should work for any number of monitors. Untested, but it should work...I think. If someone could verify that this is working everything should be golden.