fix line wrap bounds
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user