Fixed fullscreen mode bugs and added ability to change window modes.