Mac res messed up?

Hey everyone!

So I have this system where I use GetDesktopResolution() to get the resolution of the current screen and then set the resolution of my game to be that size.

This works perfectly fine on windows but when my project is on mac GetDesktopResolution() returns some random 1440 x 1080 or something like that resolution and sets the screen size to that.

Then when I do set the resolution of my game to what the res of my macbook is 2560x1600, it doesn’t work and it just appears smaller!?

Also the taskbar of the macbook is always in front of the window?

Please can someone help me out, any help is much appreciated!