di=createobject("roDeviceInfo")
canvas=CreateObject("roImageCanvas")
canvas.SetLayer(0, { color: "#000000" })
If di.GetDisplayType()="HDTV"
canvas.SetLayer(1, [{
url: "pkg:/images/splashhd.jpg"
targetRect: {
x: 0
y: 0
w: 1280
h: 720
}
}])
Else
canvas.SetLayer(1, [{
url: "pkg:/images/splashsd.jpg"
targetRect: {
x: 0
y: 0
w: 720
h: 480
}
}])
End If
canvas.Show()
"destruk" wrote:
From RokuJoel --
function IsNotLegacyDevice() as boolean
version = CreateObject("roDeviceInfo").GetVersion()
major = Mid(version, 3, 1)
minor = Mid(version, 5, 2)
build = Mid(version, 8, 5)
if major.toint() >= 4 then
return true
else
return false
end if
end function