View difference between Paste ID: GWG3sJLZ and HShLr0ZA
SHOW: | | - or go back to the newest paste.
1-
_W = display.contentWidth
1+
_W = display.contentWidth -- Virtual width
2-
_H = display.contentHeight
2+
_H = display.contentHeight -- Virtual height
3
_T = display.screenOriginY -- Top
4
_L = display.screenOriginX -- Left
5
_R = display.viewableContentWidth - _L -- Right
6-
_B = display.viewableContentHeight - _T-- Bottom
6+
_B = display.viewableContentHeight - _T -- Bottom
7
8
virtual_actual_width = _R - _L -- Screen width in virtual coordinate system
9
virtual_actual_height = _B - _T -- Screen height in virtual coordinate system
10
11
screen_width = display.pixelWidth -- Device native width
12
screen_height = display.pixelHeight -- Device native height