Subversion Repositories Kolibri OS

Rev

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

Rev 7975 Rev 8439
Line 5... Line 5...
5
 
5
 
Line 6... Line 6...
6
	Parse();
6
	Parse();
Line 7... Line 7...
7
 
7
 
8
	list.visible = list.h / list.item_h;
8
	list.visible = list.h / list.item_h;
9
	DrawBuf.Init(list.x, list.y, list.w, list.visible+1*list.item_h);
9
	canvas.Init(list.x, list.y, list.w, list.visible+1*list.item_h);
10
	DrawPage();	
10
	DrawPage();	
Line 11... Line 11...
11
}
11
}
12
 
12
 
Line 62... Line 62...
62
		absolute_y = i + list.first;
62
		absolute_y = i + list.first;
63
		line_bg = theme.bg;
63
		line_bg = theme.bg;
64
 
64
 
Line 65... Line 65...
65
		if (selection.start_y < absolute_y) && (selection.end_y > absolute_y) line_bg = selection.color;
65
		if (selection.start_y < absolute_y) && (selection.end_y > absolute_y) line_bg = selection.color;
66
		DrawBuf.DrawBar(0, ydraw, list.w, list.item_h, line_bg);
66
		canvas.DrawBar(0, ydraw, list.w, list.item_h, line_bg);
Line 67... Line 67...
67
 
67
 
Line 68... Line 68...
68
		selection.draw(absolute_y);
68
		selection.draw(absolute_y);
69
 
69
 
70
		if (search.visible) || (search_next) for (ff=0; ff
70
		if (search.visible) || (search_next) for (ff=0; ff
Line 71... Line 71...
71
			s1 = search.found.get(ff) - lines.get(absolute_y);
71
			s1 = search.found.get(ff) - lines.get(absolute_y);
Line 72... Line 72...
72
			s2 = search.found.get(ff) - lines.get(absolute_y+1);
72
			s2 = search.found.get(ff) - lines.get(absolute_y+1);
73
 
73
 
74
			if (s2 > 0) break;
74
			if (s2 > 0) break;
75
 
75
 
76
			if (s1 > 0) && (s2 < 0) {
76
			if (s1 > 0) && (s2 < 0) {
77
				DrawBuf.DrawBar(search.found.get(ff) - lines.get(absolute_y) * list.font_w + 3,
77
				canvas.DrawBar(search.found.get(ff) - lines.get(absolute_y) * list.font_w + 3,
Line 78... Line 78...
78
					ydraw, strlen(#found_text) * list.font_w, list.item_h, theme.found);
78
					ydraw, strlen(#found_text) * list.font_w, list.item_h, theme.found);
79
				search_next = false;
79
				search_next = false;
80
			}
80
			}
Line 81... Line 81...
81
		}
81
		}
Line 82... Line 82...
82
 
82
 
83
		if (absolute_y
83
		if (absolute_y