a few more integer coordinates

[?]
May 19, 2022, 11:35 PM
DXT4QTAH5G6J7ZB3SMOOXVECKWYUPZVE2ODMUFTPPNHLTOSZLQSAC

Dependencies

  • [2] WTDKUACN rectangle and square shapes
  • [3] 242L3OQX bugfix: ensure Cursor_line is always on a text line
  • [4] DLQMM265 scroll past first page
  • [5] VHQCNMAR several more modules
  • [6] HYEAFRZ2 split mouse_pressed events between Text and Drawing
  • [7] BULPIBEG beginnings of a module for the text editor
  • [8] HIH47LNB drop unused arg
  • [*] OTIBCAUJ love2d scaffold

Change contents

  • replacement in text.lua at line 184
    [3.589][3.589:644]()
    local y = Screen_height - 15*Zoom -- for Cursor_line
    [3.589]
    [3.644]
    local y = Screen_height - math.floor(15*Zoom) -- for Cursor_line
  • replacement in text.lua at line 187
    [3.703][3.703:723]()
    y = y - 15*Zoom
    [3.703]
    [3.723]
    y = y - math.floor(15*Zoom)
  • replacement in text.lua at line 191
    [3.839][3.839:863]()
    if y < 15*Zoom then
    [3.839]
    [3.863]
    if y < math.floor(15*Zoom) then
  • replacement in text.lua at line 200
    [4.433][4.39:95](),[4.39][4.39:95]()
    return x >= 16 and y >= line.y and y < line.y+15*Zoom
    [4.433]
    [4.95]
    return x >= 16 and y >= line.y and y < line.y + math.floor(15*Zoom)
  • replacement in text.lua at line 249
    [4.1386][4.1386:1433]()
    return 25+text_before_cursor:getWidth()*Zoom
    [4.1386]
    [4.1433]
    return 25 + math.floor(text_before_cursor:getWidth()*Zoom)
  • replacement in main.lua at line 185
    [4.1889][3.1021:1043]()
    y = y - 15*Zoom
    [4.1889]
    [3.1043]
    y = y - math.floor(15*Zoom)
  • replacement in help.lua at line 5
    [4.6794][4.6794:6810]()
    y = y+15*Zoom
    [4.6794]
    [4.6810]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 7
    [4.6915][4.6915:6931]()
    y = y+15*Zoom
    [4.6915]
    [4.6931]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 9
    [4.7032][4.7032:7048]()
    y = y+15*Zoom
    [4.7032]
    [4.7048]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 11
    [4.7145][4.7145:7161]()
    y = y+15*Zoom
    [4.7145]
    [4.7161]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 13
    [4.7264][4.7264:7296]()
    y = y+15*Zoom
    y = y+15*Zoom
    [4.7264]
    [4.7296]
    y = y + math.floor(15*Zoom)
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 17
    [4.7441][4.7441:7459]()
    y = y+15*Zoom
    [4.7441]
    [4.7459]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 21
    [4.7595][4.7595:7613]()
    y = y+15*Zoom
    [4.7595]
    [4.7613]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 25
    [4.7774][4.7774:7792]()
    y = y+15*Zoom
    [4.7774]
    [4.7792]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 29
    [4.7937][4.7937:7955]()
    y = y+15*Zoom
    [4.7937]
    [4.7955]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 33
    [4.8097][2.404:422]()
    y = y+15*Zoom
    [4.8097]
    [2.422]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 37
    [2.568][2.568:586]()
    y = y+15*Zoom
    [2.568]
    [2.586]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 41
    [2.726][4.8097:8115](),[4.8097][4.8097:8115]()
    y = y+15*Zoom
    [2.726]
    [4.8115]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 44
    [4.8211][4.8211:8227]()
    y = y+15*Zoom
    [4.8211]
    [4.8227]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 46
    [4.8301][4.8301:8333]()
    y = y+15*Zoom
    y = y+15*Zoom
    [4.8301]
    [4.8333]
    y = y + math.floor(15*Zoom)
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 49
    [4.8411][4.8411:8427]()
    y = y+15*Zoom
    [4.8411]
    [4.8427]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 58
    [4.8792][4.8792:8808]()
    y = y+15*Zoom
    [4.8792]
    [4.8808]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 60
    [4.8874][4.8874:8890]()
    y = y+15*Zoom
    [4.8874]
    [4.8890]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 63
    [4.9036][4.9036:9054]()
    y = y+15*Zoom
    [4.9036]
    [4.9054]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 66
    [4.9237][4.9237:9255]()
    y = y+15*Zoom
    [4.9237]
    [4.9255]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 70
    [4.9450][4.9450:9470]()
    y = y+15*Zoom
    [4.9450]
    [4.9470]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 75
    [4.9678][4.9678:9696]()
    y = y+15*Zoom
    [4.9678]
    [4.9696]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 78
    [4.9846][4.9846:9864]()
    y = y+15*Zoom
    [4.9846]
    [4.9864]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 80
    [4.9952][4.9952:9970]()
    y = y+15*Zoom
    [4.9952]
    [4.9970]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 83
    [4.10091][4.10091:10123]()
    y = y+15*Zoom
    y = y+15*Zoom
    [4.10091]
    [4.10123]
    y = y + math.floor(15*Zoom)
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 87
    [4.10248][4.10248:10266]()
    y = y+15*Zoom
    [4.10248]
    [4.10266]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 91
    [4.10422][4.10422:10440]()
    y = y+15*Zoom
    [4.10422]
    [4.10440]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 95
    [4.10580][4.10580:10598]()
    y = y+15*Zoom
    [4.10580]
    [4.10598]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 99
    [4.10735][2.727:745]()
    y = y+15*Zoom
    [4.10735]
    [2.745]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 103
    [2.886][2.886:904]()
    y = y+15*Zoom
    [2.886]
    [2.904]
    y = y + math.floor(15*Zoom)
  • replacement in help.lua at line 107
    [2.1039][4.10735:10753](),[4.10735][4.10735:10753]()
    y = y+15*Zoom
    [2.1039]
    [4.10753]
    y = y + math.floor(15*Zoom)