My laptop has a display resolution of 3840 x 2160, but when I run the code below it returns a display width of 1920 and a display height of 1080:
Option _Explicit
Dim As Integer x, y
' image& = _ScreenImage
x = _DesktopWidth
y = _DesktopHeight
Print x; y
Tested on Win 10, 20H2 with QB64 1.5