Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7285 leency 1
 
2
{
3
	void write_text();
4
	void draw_hor_line();
7286 leency 5
};
7285 leency 6
7
 
8
{
9
	char error_message[128];
10
7286 leency 11
 
7285 leency 12
		sprintf(#error_message, "ERROR: canvas.x overflow: H %d X %d", kfont.size.height, _x);
13
		debugln(#error_message);
14
	}
15
	if (_y+kfont.size.pt > kfont.size.height) {
16
		sprintf(#error_message, "ERROR: canvas.y overflow: H %d Y %d", kfont.size.height, _y);
17
		debugln(#error_message);
18
		return;
19
	}
20
	kfont.WriteIntoBuffer(_x, _y, list.w, kfont.size.height, 0xFFFFFF, _text_col, kfont.size.pt, _text_off);
21
	if (_y/list.item_h-list.first==list.visible) DrawPage();
22
}
23
24
 
25
 
7286 leency 26
{
7285 leency 27
	int i;
28
	for (i = _y*list.w+_x*KFONT_BPP+kfont.raw ; i<_y*list.w+_x+_w*KFONT_BPP+kfont.raw ; i+=KFONT_BPP)
29
	{
30
		ESDWORD[i] = _color;
31
	}
32
}
33