Skip to content

Commit

Permalink
scrolling_text() arg #4 is x, not width
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunsi committed Apr 14, 2024
1 parent 7783d5c commit d593b56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node.lua
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ local function draw(real_width, real_height)
-- to hide the text outside the view area
if dep.notes ~= json.null then
-- scroller position
local max_scroller_width = real_width - text_x - CONFIG.second_font:width(append, text_lower_size) - 20
local max_scroller_x = real_width - CONFIG.second_font:width(append, text_lower_size) - 20
local scroller_y = text_y + text_upper_size

if not (platform == "" and CONFIG.large_minutes) then
Expand All @@ -228,7 +228,7 @@ local function draw(real_width, real_height)
scrolling_text(
dep.id,
text_x, scroller_y,
max_scroller_width, scroller_y + text_lower_size,
max_scroller_x, scroller_y + text_lower_size,
dep.notes,
CONFIG.second_font,
CONFIG.second_colour.r,
Expand Down

0 comments on commit d593b56

Please sign in to comment.