uint32
This commit is contained in:
parent
7b2393874b
commit
a97f2171a4
1 changed files with 5 additions and 5 deletions
|
@ -205,15 +205,15 @@ proc typeset*(
|
||||||
# Since horizontal alignment adjustments are different for each line,
|
# Since horizontal alignment adjustments are different for each line,
|
||||||
# find the start and stop of each line of text.
|
# find the start and stop of each line of text.
|
||||||
var
|
var
|
||||||
lines: seq[(int, int)] # (start, stop)
|
lines: seq[(uint32, uint32)] # (start, stop)
|
||||||
start: int
|
start: uint32
|
||||||
prevY = result.positions[0].y
|
prevY = result.positions[0].y
|
||||||
for i, pos in result.positions:
|
for i, pos in result.positions:
|
||||||
if pos.y != prevY:
|
if pos.y != prevY:
|
||||||
lines.add((start, i - 1))
|
lines.add((start, i.uint32 - 1))
|
||||||
start = i
|
start = i.uint32
|
||||||
prevY = pos.y
|
prevY = pos.y
|
||||||
lines.add((start, result.positions.len - 1))
|
lines.add((start, result.positions.len.uint32 - 1))
|
||||||
|
|
||||||
for (start, stop) in lines:
|
for (start, stop) in lines:
|
||||||
var furthestX: float32
|
var furthestX: float32
|
||||||
|
|
Loading…
Reference in a new issue