fix skins.inc path

git-svn-id: svn://kolibrios.org@8008 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2020-05-29 22:24:39 +00:00
parent 6c853d0a9c
commit 2c289a3352
3 changed files with 10 additions and 32 deletions

View File

@ -2,7 +2,7 @@
#include "..\TWB\anchors.h"
#include "..\TWB\parse_tag.h"
#include "..\TWB\special.h"
#include "..\TWB\img_cache.h"
#include "..\TWB\img.h"
#include "..\TWB\tag_list.h"
dword page_bg;
dword link_color_default;

View File

@ -1,37 +1,15 @@
struct s_image
struct img
{
dword *image;
char path[4096];
collection src;
collection_img data;
collection_int xywh;
drop();
};
s_image pics[100]; //pics = mem_Alloc( 100*sizeof(s_image) );
struct ImageCache {
int pics_count;
void Free();
int GetImage();
void Images();
};
void ImageCache::Free()
void img::drop()
{
for ( ; pics_count>0; pics_count--)
{
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;
src.drop();
data.drop();
}

View File

@ -1,4 +1,4 @@
include '..\skin.inc'
include '../../skin.inc'
SKIN_PARAMS \
height = bmp_base.height,\ ; skin height