From ecb797a097d4a3399b31ebb920020a1fd169976d Mon Sep 17 00:00:00 2001 From: chrox Date: Tue, 30 Apr 2013 13:48:50 +0800 Subject: [PATCH] enlarge hightlight box in readerhightlight.lus --- frontend/ui/reader/readerview.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/frontend/ui/reader/readerview.lua b/frontend/ui/reader/readerview.lua index d92d6c350..e98498c72 100644 --- a/frontend/ui/reader/readerview.lua +++ b/frontend/ui/reader/readerview.lua @@ -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