delete an unused arg

This commit is contained in:
Kartik K. Agaram 2023-07-31 14:20:53 -07:00
parent 6a644f3e44
commit 3865fd86cd
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ function Text.draw_search_bar(State)
love.graphics.rectangle('line', 20, y-6, App.screen.width-40, h+2, 2,2)
App.color(Text_color)
App.screen.print(State.search_term, 25,y-5)
Text.draw_cursor(State, 25+App.width(State.search_term),y-5, Cursor_color, Text_color)
Text.draw_cursor(State, 25+App.width(State.search_term),y-5, Cursor_color)
end
function Text.search_next(State)

View File

@ -48,7 +48,7 @@ function Text.draw(State, line_index, y, startpos, fg, hide_cursor)
if hide_cursor then
Text.pretend_draw_cursor(State, State.left+Text.x(screen_line, State.cursor1.pos-pos+1), y)
else
Text.draw_cursor(State, State.left+Text.x(screen_line, State.cursor1.pos-pos+1), y, Cursor_color, fg)
Text.draw_cursor(State, State.left+Text.x(screen_line, State.cursor1.pos-pos+1), y, Cursor_color)
end
elseif pos + frag_len == State.cursor1.pos then
-- Show cursor at end of line.
@ -57,7 +57,7 @@ function Text.draw(State, line_index, y, startpos, fg, hide_cursor)
if hide_cursor then
Text.pretend_draw_cursor(State, State.left+Text.x(screen_line, State.cursor1.pos-pos+1), y)
else
Text.draw_cursor(State, State.left+Text.x(screen_line, State.cursor1.pos-pos+1), y, Cursor_color, fg)
Text.draw_cursor(State, State.left+Text.x(screen_line, State.cursor1.pos-pos+1), y, Cursor_color)
end
end
end
@ -85,7 +85,7 @@ function Text.screen_line(line, line_cache, i)
return line.data:sub(offset, end_offset)
end
function Text.draw_cursor(State, x, y, cursor_color, reset_color)
function Text.draw_cursor(State, x, y, cursor_color)
-- blink every 0.5s
if math.floor(Cursor_time*2)%2 == 0 then
App.color(cursor_color)