/* * bar — залитый прямоугольник (left,top)-(right,bottom) включительно * ТЕКУЩИМ стилем заливки (setfillstyle), без рамки — как в Turbo-C. */ #include "_bgi.h" void bar(int left, int top, int right, int bottom) { int y, t; if (right < left) { t = left; left = right; right = t; } if (bottom < top) { t = top; top = bottom; bottom = t; } _bgi_begin(); for (y = top; y <= bottom; y++) _bgi_fill_span(left, right, y); _bgi_end(); }