GLBasic User Manual

Main sections

GETDESKTOPSIZE

GETDESKTOPSIZE w#%, h#%



This command offers the resolution of the current screen in pixels. Using iPhone you can use this command to check if you could use a higher resolution.

LOCAL w%, h%
GETDESKTOPSIZE w,h
STDOUT "Desktop: "+ w +"x"+ h +"\n"

See also...