Subversion Repositories Kolibri OS

Rev

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

Rev 8927 Rev 8947
Line 1... Line 1...
1
void Scroll() {
1
void DrawScroll(bool _scroll_used) {
2
	dword i;
2
	dword i;
Line 3... Line 3...
3
 
3
 
4
	dword sc_x = files.x + files.w;
4
	dword sc_x = files.x + files.w;
5
	dword sc_y = files.y;
5
	dword sc_y = files.y;
Line 21... Line 21...
21
	}
21
	}
22
	//slider
22
	//slider
23
	DrawRectangle(sc_x,sc_slider_y,16,sc_slider_h,sc.work_graph);
23
	DrawRectangle(sc_x,sc_slider_y,16,sc_slider_h,sc.work_graph);
24
	DrawRectangle3D(sc_x+1,sc_slider_y+1,14,sc_slider_h-2, sc.work_light , sc.work_dark);
24
	DrawRectangle3D(sc_x+1,sc_slider_y+1,14,sc_slider_h-2, sc.work_light , sc.work_dark);
25
	if (!scroll_used) for (i=0; i<13; i++) DrawBar(sc_x + 2 + i, sc_slider_y+2, 1, sc_slider_h-3, col.work_gradient[13-i]);
25
	for (i=0; i<13; i++) {
-
 
26
		if (!_scroll_used) EDX = col.work_gradient[13-i]; else EDX = col.work_gradient[i];
26
	if (scroll_used)  for (i=0; i<13; i++) DrawBar(sc_x + 2 + i, sc_slider_y+2, 1, sc_slider_h-3, col.work_gradient[i]);
27
		DrawBar(sc_x + 2 + i, sc_slider_y+2, 1, sc_slider_h-3, EDX);
27
 
28
	}
-
 
29
 
Line 28... Line 30...
28
	sc_center = sc_slider_h / 2 + sc_slider_y;
30
	sc_center = sc_slider_h / 2 + sc_slider_y;
Line 29... Line 31...
29
 
31
 
30
	DrawBar(sc_x+4,   sc_center-3, 8,  1, sc.work_graph);
32
	DrawBar(sc_x+4,   sc_center-3, 8,  1, sc.work_graph);