Viewport Size vs. GSystemResolution
I've used both Viewport->GetSizeXY() and GSystemResolution, and have found that:
As an example, if I run a game at 1280 x 720, #1 will return (1280x720) where as #2 will return (1290x754). Please note that GetSizeXY() is 10 pixels wider and 34 pixels taller. I'm assuming this is due to the Windows borders and title bar.
My question is, is there a way to get the Viewport space without having the Windows border elements added to the dimensions? I'm using #1 for the time being, but GetSizeXY() seems more flexible in that it will automatically adjust to the actual dimensions used in the Editor, etc.
p.s. Quick sample code for measuring your own screensize (so that others can see what I mean):
asked Jul 18 '17 at 06:53 PM in Rendering
Follow this question
Once you sign in you will be able to subscribe for any updates here