Always override line in redrawLine
This commit is contained in:
parent
5bbd42d461
commit
e0ec33e387
11
listview.lua
11
listview.lua
|
@ -13,10 +13,13 @@ local function setDrawLineFunc(drawLineFunc)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function redrawLine(idx)
|
local function redrawLine(idx)
|
||||||
if drawLine then
|
local tw, th = frame.getSize()
|
||||||
local tw, th = frame.getSize()
|
if idx >= paginationOffset and idx-paginationOffset <= th then
|
||||||
if idx >= paginationOffset and idx-paginationOffset <= th then
|
frame.setCursorPos(1,idx-paginationOffset+1)
|
||||||
frame.setCursorPos(1,idx-paginationOffset+1)
|
frame.setBackgroundColor(colors.red)
|
||||||
|
frame.clearLine()
|
||||||
|
frame.setBackgroundColor(colors.black)
|
||||||
|
if drawLine then
|
||||||
drawLine(frame, backingList[idx])
|
drawLine(frame, backingList[idx])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue