From 4473c615c84c2e64bdd69b18290ba0db6ac6b755 Mon Sep 17 00:00:00 2001 From: SomeGuy <97603719+Commodore64user@users.noreply.github.com> Date: Sat, 23 Mar 2024 23:16:12 +0000 Subject: [PATCH] Update readerview.lua improved underline --- frontend/apps/reader/modules/readerview.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/apps/reader/modules/readerview.lua b/frontend/apps/reader/modules/readerview.lua index 08746e9ad..ba99d636e 100644 --- a/frontend/apps/reader/modules/readerview.lua +++ b/frontend/apps/reader/modules/readerview.lua @@ -632,7 +632,7 @@ function ReaderView:drawHighlightRect(bb, _x, _y, rect, drawer, draw_note_mark) if drawer == "lighten" then bb:lightenRect(x, y, w, h, self.highlight.lighten_factor) elseif drawer == "underscore" then - bb:paintRect(x, y + h - 1, w, h / 8, Blitbuffer.COLOR_GRAY) + bb:paintRect(x, y + h - math.floor(h / 16), w, math.floor(h / 8), Blitbuffer.COLOR_GRAY_4) elseif drawer == "strikeout" then local line_y = y + math.floor(h / 2) + 1 if self.ui.paging then