forked from KolibriOS/kolibrios
fix skins.inc path
git-svn-id: svn://kolibrios.org@8008 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
6c853d0a9c
commit
2c289a3352
@ -2,7 +2,7 @@
|
|||||||
#include "..\TWB\anchors.h"
|
#include "..\TWB\anchors.h"
|
||||||
#include "..\TWB\parse_tag.h"
|
#include "..\TWB\parse_tag.h"
|
||||||
#include "..\TWB\special.h"
|
#include "..\TWB\special.h"
|
||||||
#include "..\TWB\img_cache.h"
|
#include "..\TWB\img.h"
|
||||||
#include "..\TWB\tag_list.h"
|
#include "..\TWB\tag_list.h"
|
||||||
dword page_bg;
|
dword page_bg;
|
||||||
dword link_color_default;
|
dword link_color_default;
|
||||||
|
@ -1,37 +1,15 @@
|
|||||||
struct s_image
|
struct img
|
||||||
{
|
{
|
||||||
dword *image;
|
collection src;
|
||||||
char path[4096];
|
collection_img data;
|
||||||
|
collection_int xywh;
|
||||||
|
drop();
|
||||||
};
|
};
|
||||||
|
|
||||||
s_image pics[100]; //pics = mem_Alloc( 100*sizeof(s_image) );
|
void img::drop()
|
||||||
|
|
||||||
struct ImageCache {
|
|
||||||
int pics_count;
|
|
||||||
void Free();
|
|
||||||
int GetImage();
|
|
||||||
void Images();
|
|
||||||
};
|
|
||||||
|
|
||||||
void ImageCache::Free()
|
|
||||||
{
|
{
|
||||||
for ( ; pics_count>0; pics_count--)
|
src.drop();
|
||||||
{
|
data.drop();
|
||||||
if (pics[pics_count].image) img_destroy stdcall (pics[pics_count].image);
|
|
||||||
pics[pics_count].path = NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
int ImageCache::GetImage(dword i_path)
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
return 0;
|
|
||||||
for (i=0; i<=pics_count; i++) if (!strcmp(#pics[i].path, i_path)) return i; //image exists
|
|
||||||
// Load image and add it to Cache
|
|
||||||
pics_count++;
|
|
||||||
//pics[pics_count].image = load_EEERRRR_image(i_path);
|
|
||||||
//strcpy(#pics[pics_count].path, i_path);
|
|
||||||
return pics_count;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
include '..\skin.inc'
|
include '../../skin.inc'
|
||||||
|
|
||||||
SKIN_PARAMS \
|
SKIN_PARAMS \
|
||||||
height = bmp_base.height,\ ; skin height
|
height = bmp_base.height,\ ; skin height
|
||||||
|
Loading…
Reference in New Issue
Block a user