Subversion Repositories Kolibri OS

Rev

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

Rev 5746 Rev 5825
Line 66... Line 66...
66
	imgw = DSWORD[pics[cur_pic].image+4];
66
	imgw = DSWORD[pics[cur_pic].image+4];
67
	imgh = DSWORD[pics[cur_pic].image+8];
67
	imgh = DSWORD[pics[cur_pic].image+8];
68
	if (imgw > width1) imgw = width1;
68
	if (imgw > width1) imgw = width1;
Line 69... Line 69...
69
	
69
	
70
	if (stroka==0) DrawBar(WB1.list.x, WB1.list.y, WB1.list.w-15, 5, bg_color); //fill first line
70
	if (stroka==0) DrawBar(WB1.list.x, WB1.list.y, WB1.list.w-15, 5, bg_color); //fill first line
71
	stroka += imgh / WB1.list.line_h;
71
	stroka += imgh / WB1.list.item_h;
72
	if (imgh % WB1.list.line_h) stroka++;
72
	if (imgh % WB1.list.item_h) stroka++;
73
	if (top1+imghWB1.list.y+WB1.list.h-10) return; //if all image is out of visible area
73
	if (top1+imghWB1.list.y+WB1.list.h-10) return; //if all image is out of visible area
74
	if (top1
74
	if (top1
75
	{
75
	{
76
		img_lines_first=WB1.list.y-top1;
76
		img_lines_first=WB1.list.y-top1;
Line 84... Line 84...
84
	if (imgh<=0) return;
84
	if (imgh<=0) return;
85
	if (anchor) return;
85
	if (anchor) return;
Line 86... Line 86...
86
	
86
	
87
	img_draw stdcall (pics[cur_pic].image, left1-5, top1, imgw, imgh,0,img_lines_first);
87
	img_draw stdcall (pics[cur_pic].image, left1-5, top1, imgw, imgh,0,img_lines_first);
88
	DrawBar(left1+imgw - 5, top1, WB1.list.w-imgw, imgh, bg_color);
88
	DrawBar(left1+imgw - 5, top1, WB1.list.w-imgw, imgh, bg_color);
89
	DrawBar(WB1.list.x, top1+imgh, WB1.list.w, -imgh % WB1.list.line_h + WB1.list.line_h, bg_color);
89
	DrawBar(WB1.list.x, top1+imgh, WB1.list.w, -imgh % WB1.list.item_h + WB1.list.item_h, bg_color);
90
	if (link)
90
	if (link)
91
	{
91
	{
92
		UnsafeDefineButton(left1 - 5, top1, imgw, imgh-1, PageLinks.count + 400 + BT_HIDE, 0xB5BFC9);
92
		UnsafeDefineButton(left1 - 5, top1, imgw, imgh-1, PageLinks.count + 400 + BT_HIDE, 0xB5BFC9);
93
		PageLinks.AddText(0, imgw, imgh-1, NOLINE);	
93
		PageLinks.AddText(0, imgw, imgh-1, NOLINE);