Youre switching from a window to fullscreen, this works only when your video driver supports that resolution.
Windows support all resolutions when they are not too large, but fullscreen mode is limited to a few resolutions that must be supported by your 3D card and your monitor.