Hi, I'm fairly new to Unreal Engine and I'm having trouble with resolution with fullscreen

So I rerwrote everything in c++ and it still doesn’t work. It basically works the same way as blueprints. My code:

and the result:

I made all of the tests in standalone game mode