Subversion Repositories Kolibri OS

Rev

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

Rev 5718 Rev 5746
Line 35... Line 35...
35
 
35
 
36
 
36
 
37
void ImageCache::Images(int left1, top1, width1)
37
void ImageCache::Images(int left1, top1, width1)
38
{
38
{
39
	dword image;
39
	dword image;
Line 40... Line 40...
40
    char img_path[4096], alt[4096];
40
    char img_path[4096], alt[4096]=0;
41
    int imgw=0, imgh=0, img_lines_first=0, cur_pic=0;
41
    int imgw=0, imgh=0, img_lines_first=0, cur_pic=0;
42
	
42
	
43
	do{
-
 
44
		if (!strcmp(#parametr,"src="))   //íàäî îáúåäèíèòü ñ GetNewUrl()
-
 
45
		{
-
 
46
			if (http_transfer!=0) 
-
 
47
				strcpy(#img_path, #history_list[BrowserHistory.current-1].Item); 
-
 
48
			else
43
	do{
49
			{
-
 
50
				//if (strcmp(#options)) 
44
		if (isattr("src="))
51
					strcpy(#img_path, #options);
45
		{
52
			}
46
			strcpy(#img_path, #val);
53
			PageLinks.GetAbsoluteURL(#img_path);
47
			PageLinks.GetAbsoluteURL(#img_path);
54
			cur_pic = GetImage(#img_path);
48
			cur_pic = GetImage(#img_path);
55
		}
49
		}
56
		if (!strcmp(#parametr,"alt="))
50
		if (isattr("alt="))
57
		{
51
		{
58
			strcpy(#alt, "[");
52
			strcpy(#alt, "[");
Line 59... Line 53...
59
			strcat(#alt, #options);
53
			strcat(#alt, #val);
Line 60... Line 54...
60
			strcat(#alt, "]");
54
			strcat(#alt, "]");
61
		}
55
		}
62
 
56
 
-
 
57
	} while(GetNextParam());
63
	} while(GetNextParam());
58
	
64
	
59
	if (!pics[cur_pic].image) 
Line 65... Line 60...
65
	if (!pics[cur_pic].image) 
60
	{
66
	{
61
		if (alt) && (link) strcat(#line, #alt);