Check mode HD or SD

How we can check if roku is on HD mode or in SD mode, because in HD mode I want to use one screen style, and for SD version another style.

The roDeviceInfo component has this information:

String GetDisplayType(Void)

  • Returns the text corresponding to the button selection in the Player Info
    Settings/Display Type page. Either “HDTV”, “4x3 standard”, or “16x9 anamorphic”

String GetDisplayMode(Void)

  • Returns “720p” or “480i”

I’ll need to try this on Roku2 and see if it makes any difference since some users reported their tv always says 1080p no matter what they set on the Roku2.