From 414e1b9831acea434e5be4f32bbc88f8d940385a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D0=BB=D0=B8=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD?= Date: Thu, 1 Sep 2016 15:09:45 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@250 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src/console/piscreendrawer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]; }