diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-05-14 17:25:07 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-05-14 17:25:07 -0700 |
commit | eb55e18e1dc6f45cdd26b815467f0bd2bf801787 (patch) | |
tree | 2143078a233b96c04896be2546547bbe45f747cd | |
parent | c96be4b007177c0232059f3e602784268506c920 (diff) | |
download | lines.love-eb55e18e1dc6f45cdd26b815467f0bd2bf801787.tar.gz |
hide cursor in log browser window
-rw-r--r-- | log_browser.lua | 4 | ||||
-rw-r--r-- | source.lua | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/log_browser.lua b/log_browser.lua index e011886..078db06 100644 --- a/log_browser.lua +++ b/log_browser.lua @@ -84,7 +84,7 @@ function guess_source(filename) end end -function log_browser.draw(State) +function log_browser.draw(State, hide_cursor) assert(#State.lines == #State.line_cache) local mouse_line_index = log_browser.line_index(State, App.mouse_x(), App.mouse_y()) local y = State.top @@ -117,7 +117,7 @@ function log_browser.draw(State) if type(line.data) == 'string' then local old_left, old_right = State.left,State.right State.left,State.right = xleft,xright - Text.draw(State, line_index, y, --[[startpos]] 1) + Text.draw(State, line_index, y, --[[startpos]] 1, hide_cursor) State.left,State.right = old_left,old_right else height = log_render[line.data.name](line.data, xleft, y, xright-xleft) diff --git a/source.lua b/source.lua index cbbd6cf..cab4512 100644 --- a/source.lua +++ b/source.lua @@ -265,7 +265,7 @@ function source.draw() App.color(Divider_color) love.graphics.rectangle('fill', App.screen.width/2-1,Menu_status_bar_height, 3,App.screen.height) -- - log_browser.draw(Log_browser_state) + log_browser.draw(Log_browser_state, --[[hide_cursor]] Focus ~= 'log_browser') end source.draw_menu_bar() end |