diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-07-12 21:58:46 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-07-12 21:58:46 -0700 |
commit | 70a15b3bc91283f730d8388fdeaa7e6330f930be (patch) | |
tree | da52835b43233e14847016f5a885d7fc485e7737 /help.lua | |
parent | 307e875c1c7cee60e3a07e3d7bf4f2bf79066d02 (diff) | |
download | lines.love-70a15b3bc91283f730d8388fdeaa7e6330f930be.tar.gz |
replace globals with args in a few functions
- Drawing.draw_shape - Drawing.draw_pending_shape - Drawing.in_drawing - Drawing.find_or_insert_point - Drawing.near - Drawing.pixels
Diffstat (limited to 'help.lua')
-rw-r--r-- | help.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/help.lua b/help.lua index c000fce..91fe596 100644 --- a/help.lua +++ b/help.lua @@ -46,7 +46,7 @@ function draw_help_without_mouse_pressed(State, drawing) love.graphics.print("Press 'esc' now to hide this message", State.left+30,y) y = y + State.line_height App.color(Help_background_color) - love.graphics.rectangle('fill', State.left,drawing.y, State.width, math.max(Drawing.pixels(drawing.h),y-drawing.y)) + love.graphics.rectangle('fill', State.left,drawing.y, State.width, math.max(Drawing.pixels(drawing.h, State.width),y-drawing.y)) end function draw_help_with_mouse_pressed(State, drawing) @@ -125,7 +125,7 @@ function draw_help_with_mouse_pressed(State, drawing) y = y + State.line_height end App.color(Help_background_color) - love.graphics.rectangle('fill', State.left,drawing.y, State.width, math.max(Drawing.pixels(drawing.h),y-drawing.y)) + love.graphics.rectangle('fill', State.left,drawing.y, State.width, math.max(Drawing.pixels(drawing.h, State.width),y-drawing.y)) end function current_shape(State, shape) |