Subversion Repositories Kolibri OS

Rev

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

Rev 4540 Rev 4544
Line 7... Line 7...
7
s_image pics[100]; //pics = mem_Alloc( 100*sizeof(s_image) );
7
s_image pics[100]; //pics = mem_Alloc( 100*sizeof(s_image) );
Line 8... Line 8...
8
 
8
 
9
struct ImageCache {
9
struct ImageCache {
10
	int pics_count;
10
	int pics_count;
11
	void Free();
11
	void Free();
12
	int GetImage();
12
	int GetImageNumber();
13
	void Images();
13
	void Images();
Line 14... Line 14...
14
};
14
};
15
 
15
 
Line 20... Line 20...
20
		if (pics[pics_count].image) img_destroy stdcall (pics[pics_count].image);
20
		if (pics[pics_count].image) img_destroy stdcall (pics[pics_count].image);
21
		pics[pics_count].path = NULL;
21
		pics[pics_count].path = NULL;
22
	}
22
	}
23
}
23
}
Line 24... Line 24...
24
 
24
 
25
int ImageCache::GetImage(dword i_path)
25
int ImageCache::GetImageNumber(dword i_path)
26
{
26
{
27
	int i;
27
	int i;
28
	for (i=0; i
28
	for (i=0; i
29
	// Load image and add it to Cache
29
	// Load image and add it to Cache
Line 53... Line 53...
53
				else
53
				else
54
				{
54
				{
55
					img_path[strrchr(#img_path, '/')] = '\0';
55
					img_path[strrchr(#img_path, '/')] = '\0';
56
					strcat(#img_path, #options);
56
					strcat(#img_path, #options);
57
				}
57
				}
58
				cur_pic = GetImage(#img_path); 
58
				cur_pic = GetImageNumber(#img_path); 
59
			}
59
			}
60
		}
60
		}
61
		if (!strcmp(#parametr,"alt="))
61
		if (!strcmp(#parametr,"alt="))
62
		{
62
		{
63
			strcpy(#alt, "[");
63
			strcpy(#alt, "[");