Use goToNextRowFirstColumn instead of manually changing cursor pos

openid
Marcin Kulik 13 years ago
parent ba5acf4012
commit 60d32ca2d3

@ -83,8 +83,7 @@ class AsciiIo.ScreenBuffer
i = 0
while i < text.length
if @cursorX >= @cols
@cursorY += 1
@cursorX = 0
@goToNextRowFirstColumn()
@fill @cursorY, @cursorX, 1, @charsetModifier(text[i])
@cursorX += 1

Loading…
Cancel
Save