2
0
mirror of https://github.com/koreader/koreader synced 2024-11-11 19:11:14 +00:00

enlarge hightlight box in readerhightlight.lus

This commit is contained in:
chrox 2013-04-30 13:48:50 +08:00
parent 5b3aedbea5
commit ecb797a097

View File

@ -289,12 +289,7 @@ function ReaderView:drawScrollView(bb, x, y)
end
function ReaderView:drawHightlight(bb, x, y, rect)
-- slightly enlarge the highlight box
-- for better viewing experience
local x = rect.x - rect.h * 0.01
local y = rect.y - rect.h * 0.01
local w = rect.w + rect.h * 0.02
local h = rect.h + rect.h * 0.02
local x, y, w, h = rect.x, rect.y, rect.w, rect.h
self.highlight.drawer = self.highlight.drawer or "underscore"
if self.highlight.drawer == "underscore" then