about summary refs log tree commit diff stats
path: root/text_tests.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-06-14 10:22:12 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-06-14 10:49:10 -0700
commite3c7e9c96b7bc74f086e76a1c3336e4ef755c55e (patch)
tree7493d191a10a7f0bbc9ed3a12a4aac79872eae49 /text_tests.lua
parentf277a784554fbcbcacf33a67d15c34f7628ad852 (diff)
downloadtext.love-e3c7e9c96b7bc74f086e76a1c3336e4ef755c55e.tar.gz
extract variables for drawing padding
Diffstat (limited to 'text_tests.lua')
-rw-r--r--text_tests.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/text_tests.lua b/text_tests.lua
index 4398252..221d969 100644
--- a/text_tests.lua
+++ b/text_tests.lua
@@ -427,7 +427,7 @@ function test_pagedown_skips_drawings()
   Cursor1 = {line=1, pos=1}
   Screen_top1 = {line=1, pos=1}
   Screen_bottom1 = {}
-  local drawing_height = 20 + App.screen.width / 2  -- default
+  local drawing_height = Drawing_padding_height + App.screen.width / 2  -- default
   -- initially the screen displays the first line and the drawing
   -- 15px margin + 15px line1 + 10px margin + 25px drawing + 10px margin = 75px < screen height 80px
   App.draw()