OS.get_screen_size() not returning correct values?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By 9BitStrider

See title. I have my monitor set to 1920x1080, however, using the above function spits out something along the lines of 1536x864. I’m wanting my app to adjust itself based on screen resolution at startup.

func _ready():

	print(OS.get_screen_size(-1))

Update. Apparently the screen scale in Window’s settings is the culprit. Setting it to 100% as opposed to 125% fixed the issue.

9BitStrider | 2021-06-27 19:23

Are you using Mac OS?

MxtApps | 2021-06-28 10:48

No. Windows 10.

9BitStrider | 2021-06-28 12:25