diff --git a/src/console/piscreendrawer.cpp b/src/console/piscreendrawer.cpp index 046de556..4160647f 100644 --- a/src/console/piscreendrawer.cpp +++ b/src/console/piscreendrawer.cpp @@ -219,12 +219,12 @@ void PIScreenDrawer::fillRect(int x0, int y0, int x1, int y1, PIVector y1) piSwap(y0, y1); int w = x1 - x0; int h = y1 - y0; - for (int j = y0; j != h; ++j) - if (j >= 0 && j < piMini(height, content.size_s())) { + for (int j = 0; j < h; ++j) + if (j < piMini(height, content.size_s())) { if ((j + y0) >= 0 && (j + y0) < height) { PIVector & cv(cells[y0 + j]); PIVector & contv(content[j]); - for (int i = 0; i != piMini(w, contv.size_s()); ++i) + for (int i = 0; i < piMini(w, contv.size_s()); ++i) if ((i + x0) >= 0 && (i + x0) < width) cv[x0 + i] = contv[i]; }