Subversion Repositories Kolibri OS

Rev

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

Rev 7970 Rev 7995
Line 23... Line 23...
23
}
23
}
Line 24... Line 24...
24
 
24
 
25
int ImageCache::GetImage(dword i_path)
25
int ImageCache::GetImage(dword i_path)
26
{
26
{
-
 
27
	int i;
27
	int i;
28
	return 0;
28
	for (i=0; i<=pics_count; i++) if (!strcmp(#pics[i].path, i_path)) return i; //image exists
29
	for (i=0; i<=pics_count; i++) if (!strcmp(#pics[i].path, i_path)) return i; //image exists
29
	// Load image and add it to Cache
30
	// Load image and add it to Cache
30
	pics_count++;
31
	pics_count++;
31
	pics[pics_count].image = load_image(i_path);
32
	//pics[pics_count].image = load_EEERRRR_image(i_path);
32
	strcpy(#pics[pics_count].path, i_path);
33
	//strcpy(#pics[pics_count].path, i_path);
33
	return pics_count;
34
	return pics_count;
Line 34... Line 35...
34
}
35
}