Skip to content

GET_SCREEN_RES

The command GET_SCREEN_RES returns the screen resolution w and h in pixels.

Syntax

leo-grammar
CC "Application" GET_SCREEN_RES

#--> RESULT ecode:intValue w:intValue h:intValue
CC "Application" GET_SCREEN_RES

#--> RESULT ecode:intValue w:intValue h:intValue

Parameters

none

Returns

  • ecode (intValue) - Contains the error code or is 0 in case of success.
  • w (intValue) - the horizontal screen resolution in pixels.
  • h (intValue) - the vertical screen resolution in pixels.

Details

See Also

Examples

asc
CC "Application" debug GET_SCREEN_RES
CC "Application" debug GET_SCREEN_RES

Versions and Changes

Available since ADOxx 1.3