Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
28
Src/Winamp/SkinBitmapElement.cpp
Normal file
28
Src/Winamp/SkinBitmapElement.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "api.h"
|
||||
#include "SkinBitmapElement.h"
|
||||
#include "PaletteManager.h"
|
||||
|
||||
SkinBitmapElement::SkinBitmapElement(const wchar_t *_id, const wchar_t *_filename, const wchar_t *_rootpath, int _x, int _y, int _w, int _h, ifc_xmlreaderparams *pars, int script_id, int secondarycounter, const wchar_t *colorgrp)
|
||||
: filename(_filename), rootpath(_rootpath), x(_x), y(_y), w(_w), h(_h),
|
||||
scriptid(script_id), seccount(secondarycounter), colorgroup(colorgrp),
|
||||
region(NULL)
|
||||
{
|
||||
id = _id;
|
||||
|
||||
if (pars)
|
||||
{
|
||||
for (size_t i = 0;i != pars->getNbItems();i++)
|
||||
params.addItem(pars->getItemName(i), pars->getItemValue(i));
|
||||
}
|
||||
}
|
||||
|
||||
SkinBitmapElement::~SkinBitmapElement()
|
||||
{
|
||||
if (region != NULL) WASABI_API_PALETTE->garbageCollectRegionServer(region);
|
||||
region = NULL;
|
||||
}
|
||||
|
||||
SkinItem *SkinBitmapElement::getAncestor()
|
||||
{
|
||||
return WASABI_API_PALETTE->getBitmapAncestor(this);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue