fix line wrap bounds

This commit is contained in:
Eggert Jung
2025-04-20 21:35:23 +02:00
parent 152ed507fd
commit 2d9d72e162
2 changed files with 5 additions and 2 deletions

View File

@@ -44,9 +44,9 @@ void TextWindow::print(const char* str, size_t length, CGA::Attribute attrib) {
unsigned x_now, y_now;
getPos(x_now, y_now);
CGA::show(x_now, y_now, str[i], attrib);
if(from_col+x_now >= to_col){
if(from_col+x_now >= to_col-1){
x_now = 0;
if(from_row + y_now >= to_row){
if(from_row + y_now >= to_row-1){
//scrollUp()
}
else{