From e8b01ca60cbb9cdb6468816362f88b011ab1ece5 Mon Sep 17 00:00:00 2001 From: Fellippe Heitor Date: Sat, 13 May 2023 17:54:51 -0300 Subject: [PATCH] Updating x seems necessary here. Wonder why it was commented out. That line is still in the live version at qbjs.org; will do some research, sorry for the mess. --- qb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qb.js b/qb.js index 01b6cb9..2c8e895 100644 --- a/qb.js +++ b/qb.js @@ -2205,7 +2205,6 @@ var QB = new function() { var str = args[ai]; var lines = String(str).split("\n"); for (var i=0; i < lines.length; i++) { - //var x = _locX * QB.func__FontWidth(); if (_locX > _textColumns()-1 || _locX + lines[i].length > _textColumns()) { _locX = 0; if (_locY < _textRows()-1) { @@ -2215,6 +2214,7 @@ var QB = new function() { await _printScroll(); } } + x = _locX * QB.func__FontWidth(); var y = -1; // scroll the screen