Subversion Repositories Kolibri OS

Rev

Rev 4074 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4074 Rev 4190
Line 30... Line 30...
30
		for (i = y+j*WB1.width+x+w+h*4; i>y+j*WB1.width+x+h-12*4 ; i-=4)
30
		for (i = y+j*WB1.width+x+w+h*4; i>y+j*WB1.width+x+h-12*4 ; i-=4)
31
								ESDWORD[drawbuf+i+8] = ESDWORD[-shift[j]+drawbuf+i+8];
31
								ESDWORD[drawbuf+i+8] = ESDWORD[-shift[j]+drawbuf+i+8];
32
	}
32
	}
33
}
33
}
Line -... Line 34...
-
 
34
 
-
 
35
void DrawBufAlignRight(dword x,y,w,h)
-
 
36
{
-
 
37
	int i, j, l;
-
 
38
	int content_width = stolbec * 6;
-
 
39
	int content_left = w - content_width / 2;
-
 
40
	for (j=0; j
-
 
41
	{
-
 
42
		for (i=j*w+w-x*4, l=j*w+content_width+x*4; (i>=j*w+content_left*4) && (l>=j*w*4); i-=4, l-=4)
-
 
43
		{
-
 
44
			ESDWORD[drawbuf+8+i] >< ESDWORD[drawbuf+8+l];
-
 
45
		}
-
 
46
	}
-
 
47
}
-
 
48
 
-
 
49
 
-
 
50
void DrawBufAlignCenter(dword x,y,w,h)
-
 
51
{
-
 
52
	int i, j, l;
-
 
53
	int content_width = stolbec * 6;
-
 
54
	int content_left = w - content_width / 2;
-
 
55
	for (j=0; j
-
 
56
	{
-
 
57
		for (i=j*w+content_width+content_left*4, l=j*w+content_width+x*4; (i>=j*w+content_left*4) && (l>=j*w*4); i-=4, l-=4)
-
 
58
		{
-
 
59
			ESDWORD[drawbuf+8+i] >< ESDWORD[drawbuf+8+l];
-
 
60
		}
-
 
61
	}
-
 
62
}
-
 
63
 
34
 
64
 
35
void TextGoDown(int left1, top1, width1)
65
void TextGoDown(int left1, top1, width1)
36
{
66
{
37
	if (!stroka) DrawBar(WB1.left, WB1.top, WB1.width, 5, bg_color); //çàêðàøèâàåì ôîí íàä ïåðâîé ñòðîêîé
-
 
38
	stroka++;
-
 
39
	if (blq_text) stolbec = 8; else stolbec = 0;
-
 
40
	if (li_text) stolbec = li_tab * 5;
67
	if (!stroka) DrawBar(WB1.left, WB1.top, WB1.width, 5, bg_color); //çàêðàøèâàåì ôîí íàä ïåðâîé ñòðîêîé
41
	if (top1>=WB1.top) && ( top1 < WB1.height+WB1.top-10)  && (!anchor)
68
	if (top1>=WB1.top) && ( top1 < WB1.height+WB1.top-10)  && (!anchor)
-
 
69
	{
-
 
70
		if (text_align == ALIGN_CENTER) DrawBufAlignCenter(left1,top1,WB1.width,WB1.line_h);
42
	{
71
		if (text_align == ALIGN_RIGHT) DrawBufAlignRight(left1,top1,WB1.width,WB1.line_h);
43
		PutPaletteImage(drawbuf+8, WB1.width, WB1.line_h, left1-5, top1, 32,0);
72
		PutPaletteImage(drawbuf+8, WB1.width, WB1.line_h, left1-5, top1, 32,0);
44
		DrawBufFill();
73
		DrawBufFill();
-
 
74
	}
-
 
75
	stroka++;
-
 
76
	if (blq_text) stolbec = 8; else stolbec = 0;
45
	}
77
	if (li_text) stolbec = li_tab * 5;
46
}
78
}