It looks like you're new here. If you want to get involved, click one of these buttons!
View = Core.class(Sprite) function View:init() application:setBackgroundColor(0xFF00FF) self:dump() self:addEventListener(Event.APPLICATION_RESIZE,function() print("--- RESIZE ---") application:setBackgroundColor(0xFFFF00) self:dump() end) end function View:dump() print("API Version ".. application:getApiVersion()) print("Content Width: " .. application:getContentWidth()) print("Content Height: " .. application:getContentHeight()) print("Logical Width: " .. application:getLogicalWidth()) print("Logical Height: " .. application:getLogicalHeight()) print("Device Width: " .. application:getDeviceWidth()) print("Device Height: " .. application:getDeviceHeight()) print("\n\n") end |
Comments
please provide platform on which you are trying and example output provided
Likes: antix