As far as I know, you can set whatever number you want in the config file.
The ingame function accepts an index number, where the number corresponds to the resolutions in your drop down list, so you can't set a custom one.

I'll try 1280x1024 though, that should work. I should have seen that myself .

Thanks.