Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jerdiggity
Visitor

Vertical dark lines around roGridScreen

Hello,

When building a basic roGridScreen, if I set GridScreenBackgroundColor to #FFFFFF I end up with vertical grey lines surrounding the display. Am I missing a theme property that needs to be set? Or is this a known issue? If so, is there a workaround for cases when the background of an roGridScreen needs to be white?

Example code (simplified from SimpleGrid SDK example):


Function Main()
theme = CreateObject("roAssociativeArray")
theme.GridScreenBackgroundColor = "#FFFFFF"
app = CreateObject("roAppManager")
app.SetTheme(theme)
gridstyle = "Flat-Movie"
m.port=CreateObject("roMessagePort")
screen = CreateObject("roGridScreen")
screen.SetMessagePort(m.port)
screen.SetDisplayMode("scale-to-fill")
screen.SetGridStyle(gridstyle)
categoryList = ["Drama"]
screen.setupLists(categoryList.count())
screen.SetListNames(categoryList)
for i = 0 to categoryList.count()-1
screen.SetContentList(i, getShowsForCategoryItem(categoryList[i]))
end for
screen.Show()
while true
print "Waiting for message"
msg = wait(0, m.port)
if type(msg) = "roGridScreenEvent" then
if msg.isListItemFocused() then
print"list item focused | current show = "; msg.GetIndex()
else if msg.isListItemSelected() then
row = msg.GetIndex()
selection = msg.getData()
print "list item selected row= "; row; " selection= "; selection
else if msg.isScreenClosed() then
return ""
end if
end If
end while
End Function

Function getShowsForCategoryItem(category As Object) As Object
showList = [
{
Title: category + ": Header",
releaseDate: "1976",
length: 3600-600,
Description:"This row is category " + category,
hdBranded: true,
HDPosterUrl:"http://upload.wikimedia.org/wikipedia/commons/4/43/Gold_star_on_blue.gif",
SDPosterUrl:"http://upload.wikimedia.org/wikipedia/commons/4/43/Gold_star_on_blue.gif",
Description:"Short Synopsis #1",
Synopsis:"Length",
StarRating:10,
}
]
return showList
End Function


This is my first post to the forums so I apologize if I missed anything... This has been driving me nuts though and I can't seem to find it documented elsewhere.

Thanks!
0 Kudos
1 REPLY 1
TheEndless
Channel Surfer

Re: Vertical dark lines around roGridScreen

I don't think there's anything you can do about it. I believe it's a result of the upscaling to 1080p resolution, as it doesn't typically appear at 720p.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos