show only page links

This commit is contained in:
Dobrica Pavlinusic
2012-09-25 00:04:11 +02:00
parent 8a7f2bd562
commit ac14ac4a21

View File

@@ -1393,8 +1393,10 @@ function UniReader:show(no)
local links = self:getPageLinks( no )
for i, link in ipairs(links) do
local x,y,w,h = self:zoomedRectCoordTransform( link.x0,link.y0, link.x1,link.y1 )
fb.bb:invertRect(x,y+h-2, w,1)
fb:refresh(1, x,y+h-2, w,1)
if link.page then -- skip non-page links
fb.bb:invertRect(x,y+h-2, w,1)
fb:refresh(1, x,y+h-2, w,1)
end
end
if self.rcount >= self.rcountmax then