For some reason it was possible to get the game to try and set a resolution of 0x0 when changing the game settings. Sanity checks were added to try and prevent this. Hopefully it works!