Forum Discussion
Veeta
9 years agoVisitor
This has to do with some funny behavior of roImageCanvas. It tops out at 1280x720, even if the UI is running FHD. I've seen this problem in a custom video player that was using GetCanvasRect() to set the video destination on the screen. In Roku 4 it only covered half the screen. Best thing to do is to use the width and height from GetCanvasRect() to calculate positions rather than GetDisplaySize().
For reference, here's output from a dummy channel I have to dump all this stuff:
For reference, here's output from a dummy channel I have to dump all this stuff:
------ Running dev 'Display Modes Dump' main ------
----- roDeviceInfo -----
GetDisplayType = HDTV
GetDisplayMode = 1080p
GetDisplayAspectRatio = 16x9
GetDisplaySize =
{
GetDisplaySize: w = 1920
GetDisplaySize: h = 1080
}
GetDisplayProperties =
{
GetDisplayProperties: width = 41
GetDisplayProperties: height = 23
GetDisplayProperties: Hdr10 = false
GetDisplayProperties: DolbyVision = false
GetDisplayProperties: internal = false
}
GetSupportedGraphicsResolutions =
[
{
GetSupportedGraphicsResolutions: width = 1280
GetSupportedGraphicsResolutions: name = HD
GetSupportedGraphicsResolutions: preferred = false
GetSupportedGraphicsResolutions: height = 720
GetSupportedGraphicsResolutions: ui = false
}
{
GetSupportedGraphicsResolutions: width = 1920
GetSupportedGraphicsResolutions: name = FHD
GetSupportedGraphicsResolutions: preferred = true
GetSupportedGraphicsResolutions: height = 1080
GetSupportedGraphicsResolutions: ui = true
}
]
GetVideoMode = 1080p
GetCanvasRect =
{
GetCanvasRect: w = 1280
GetCanvasRect: x = 0
GetCanvasRect: y = 0
GetCanvasRect: h = 720
}
GetUIResolution =
{
GetUIResolution: width = 1920
GetUIResolution: name = FHD
GetUIResolution: height = 1080
}
------------------------