Subversion Repositories Kolibri OS

Rev

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

Rev 7771 Rev 7798
Line 32... Line 32...
32
				line_start = bufoff;
32
				line_start = bufoff;
33
				line_length = 30;
33
				line_length = 30;
34
				list.count++;
34
				list.count++;
35
			}
35
			}
36
			if (mode==DRAW_BUF) {
36
			if (mode==DRAW_BUF) {
37
				EBX = bufoff-line_start;
-
 
38
				strlcpy(#line, line_start, EBX);
37
				strlcpy(#line, line_start, bufoff-line_start);
39
				kfont.WriteIntoBuffer(DRAW_PADDING,stroka_y,list.w,kfont.size.height, bg_color, text_color, kfont.size.pt, #line);
38
				kfont.WriteIntoBuffer(DRAW_PADDING,stroka_y,list.w,kfont.size.height, bg_color, text_color, kfont.size.pt, #line);
40
				stroka_y += list.item_h;
39
				stroka_y += list.item_h;
41
				line_start = bufoff;
40
				line_start = bufoff;
42
				line_length = 30;
41
				line_length = 30;
43
			}
42
			}
Line 52... Line 51...
52
	list.w = Form.cwidth-scroll.size_x-1;
51
	list.w = Form.cwidth-scroll.size_x-1;
53
	list.count=0;
52
	list.count=0;
54
	Parse(COUNT_BUF_HEIGHT);
53
	Parse(COUNT_BUF_HEIGHT);
Line 55... Line 54...
55
	
54
	
56
	//draw text in buffer
55
	//draw text in buffer
57
	list.SetSizes(0, TOOLBAR_H, list.w, Form.cheight-TOOLBAR_H, kfont.size.pt+6);
56
	list.SetSizes(0, TOOLBAR_H, list.w, Form.cheight-TOOLBAR_H, kfont.size.pt+8);
58
	if (list.count < list.visible) list.count = list.visible;
57
	if (list.count < list.visible) list.count = list.visible;
59
	kfont.size.height = list.count+1*list.item_h;
58
	kfont.size.height = list.count+1*list.item_h;
60
	kfont.raw_size = 0;
59
	kfont.raw_size = 0;