Can't change video settings in windowed mode

Whenever I set my video setting and enter a server or restarts the game, they will revert back to the default settings. This only happends when I am playing in windowed mode. Does anyone have a fix for this?

Do you have any startup parameters?