Subversion Repositories Kolibri OS

Rev

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

Rev 6735 Rev 6794
Line 65... Line 65...
65
	
65
	
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];
Line 68... Line -...
68
	if (imgw > width1) imgw = width1;
-
 
69
	
68
	if (imgw > width1) imgw = width1;
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.item_h;
69
	
72
	if (imgh % WB1.list.item_h) stroka++;
70
	draw_y += imgh + 5;
73
	if (top1+imghWB1.list.y+WB1.list.h-10) return; //if all image is out of visible area
71
	if (top1+imghWB1.list.y+WB1.list.h-10) return; //if all image is out of visible area
74
	if (top1
72
	if (top1
75
	{
73
	{
Line 86... Line 84...
86
	img_draw stdcall (pics[cur_pic].image, left1-5, top1, imgw, imgh,0,img_lines_first);
84
	img_draw stdcall (pics[cur_pic].image, left1-5, top1, imgw, imgh,0,img_lines_first);
87
	DrawBar(left1+imgw - 5, top1, WB1.list.w-imgw, imgh, bg_color);
85
	DrawBar(left1+imgw - 5, top1, WB1.list.w-imgw, imgh, bg_color);
88
	DrawBar(WB1.list.x, top1+imgh, WB1.list.w, -imgh % WB1.list.item_h + WB1.list.item_h, bg_color);
86
	DrawBar(WB1.list.x, top1+imgh, WB1.list.w, -imgh % WB1.list.item_h + WB1.list.item_h, bg_color);
89
	if (link)
87
	if (link)
90
	{
88
	{
91
		UnsafeDefineButton(left1 - 5, top1, imgw, imgh-1, PageLinks.count + 400 + BT_HIDE, 0xB5BFC9);
89
		//UnsafeDefineButton(left1 - 5, top1, imgw, imgh-1, PageLinks.count + 400 + BT_HIDE, 0xB5BFC9);
92
		PageLinks.AddText(0, imgw, imgh-1, NOLINE);	
90
		//PageLinks.AddText(0, imgw, imgh-1, NOLINE, 1);
93
		//WB1.DrawPage();
91
		//WB1.DrawPage();
94
	} 
92
	} 
95
}
93
}
Line 96... Line 94...
96
 
94
 
97
ImageCache ImgCache;
95
ImageCache ImgCache;