Fix compile on clang

This commit is contained in:
couriersud 2015-01-02 00:47:35 +01:00
parent c0c22a0894
commit 39b86f1e75
2 changed files with 18 additions and 2 deletions

View File

@ -222,6 +222,21 @@ render_texinfo &render_texinfo::operator=(const render_texinfo &src)
return *this;
}
render_texinfo::render_texinfo(const render_texinfo &src)
{
base = src.base;
rowpixels = src.rowpixels;
width = src.width;
height = src.height;
seqid = src.seqid;
osddata = src.osddata;
m_palette = src.m_palette;
if (m_palette != NULL)
{
m_palette->ref_count++;
}
}
void render_texinfo::set_palette(const dynamic_array<rgb_t> *source)
{
free_palette();

View File

@ -219,13 +219,14 @@ struct render_palette_copy
class render_texinfo
{
private:
render_texinfo(const render_texinfo &src) {}
public:
render_texinfo()
: base(NULL), rowpixels(0), width(0), height(0),
seqid(0), osddata(0), m_palette(NULL)
{}
render_texinfo(const render_texinfo &src);
~render_texinfo()
{
free_palette();