dword drawbuf; void DrawBufInit() { free(drawbuf); drawbuf = malloc(WB1.width * WB1.line_h +4 * 4 + 8); //+1 for good luck ESDWORD[drawbuf] = WB1.width; ESDWORD[drawbuf+4] = WB1.line_h; } void DrawBufFill() { int i; for (i=0; iy+j*WB1.width+x+h-12*4 ; i-=4) ESDWORD[drawbuf+i+8] = ESDWORD[-shift[j]+drawbuf+i+8]; } } void TextGoDown(int left1, top1, width1) { if (!stroka) DrawBar(WB1.left, WB1.top, WB1.width, 5, bg_color); //çàêðàøèâàåì ôîí íàä ïåðâîé ñòðîêîé stroka++; if (blq_text) stolbec = 8; else stolbec = 0; if (li_text) stolbec = li_tab * 5; if (top1>=WB1.top) && ( top1 < WB1.height+WB1.top-10) && (!anchor) { PutPaletteImage(drawbuf+8, WB1.width, WB1.line_h, left1-5, top1, 32,0); DrawBufFill(); } }