Fixes cursor error when main window is at increased size.

Fixes the issues discussed in the pull request. This code should really be moved inside of resize_gui when that has been written. Indecently resize_gui doesn't look as though it is too complex and may be easy to rewrite.