about summary refs log tree commit diff stats
path: root/help.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-07-04 22:01:57 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-07-04 22:01:57 -0700
commit18aa21d0c0f0c6b703835e7b6664344ff2e68ec0 (patch)
tree064062e3478bac638175ec9a7ff6c4710fa73109 /help.lua
parentea40a9b661e09ec6d4e74ac277ea785823ff03f0 (diff)
downloadtext.love-18aa21d0c0f0c6b703835e7b6664344ff2e68ec0.tar.gz
keep online help inside of drawing
Diffstat (limited to 'help.lua')
-rw-r--r--help.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/help.lua b/help.lua
index f60f9e3..ccaed84 100644
--- a/help.lua
+++ b/help.lua
@@ -46,7 +46,7 @@ function draw_help_without_mouse_pressed(drawing)
   love.graphics.print("Press 'esc' now to hide this message", Margin_left+30,y)
   y = y + Line_height
   love.graphics.setColor(0,0.5,0, 0.1)
-  love.graphics.rectangle('fill', Margin_left,drawing.y, App.screen.width, math.max(Drawing.pixels(drawing.h),y-drawing.y))
+  love.graphics.rectangle('fill', Margin_left,drawing.y, App.screen.width-Margin_width, math.max(Drawing.pixels(drawing.h),y-drawing.y))
 end
 
 function draw_help_with_mouse_pressed(drawing)
@@ -125,7 +125,7 @@ function draw_help_with_mouse_pressed(drawing)
     y = y + Line_height
   end
   love.graphics.setColor(0,0.5,0, 0.1)
-  love.graphics.rectangle('fill', Margin_left,drawing.y, App.screen.width, math.max(Drawing.pixels(drawing.h),y-drawing.y))
+  love.graphics.rectangle('fill', Margin_left,drawing.y, App.screen.width-Margin_width, math.max(Drawing.pixels(drawing.h),y-drawing.y))
 end
 
 function current_shape(shape)