Ok, did some more testing:
- It works ok for an exported game but not when starting the game from the editor.
Also, when starting from the editor, i can see the following in the messages.log:
"The command line parameter 'resolution' can only be used in fullscreen mode. Parameter is ignored."
This is weird, i know that for settting custom resolution you need to be in window mode!