summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-04-05 10:20:58 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2009-04-05 10:20:58 +0200
commit9ff445dce4d2ed235515c945d745466ce2275438 (patch)
treeafb93553c1448f3087ea4593895e60fc075e0658
parent168907fd0bcd90d8af55ee2fe484eb0d0c436dcf (diff)
downloadvdr-9ff445dce4d2ed235515c945d745466ce2275438.tar.gz
vdr-9ff445dce4d2ed235515c945d745466ce2275438.tar.bz2
Added missing virtual destructor to cPalette
-rw-r--r--HISTORY1
-rw-r--r--osd.c6
-rw-r--r--osd.h3
3 files changed, 8 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index c2d7e788..b443539c 100644
--- a/HISTORY
+++ b/HISTORY
@@ -6014,3 +6014,4 @@ Video Disk Recorder Revision History
has been played. cDvbPlayer::Action() no longer calls DeviceFlush() (thanks to
Reinhard Nissl for making sure vdr-xine no longer needs this).
- Added missing '[]' to the delete operator in cMenuEditStrItem::~cMenuEditStrItem().
+- Added missing virtual destructor to cPalette.
diff --git a/osd.c b/osd.c
index 32614d87..d8e51126 100644
--- a/osd.c
+++ b/osd.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osd.c 2.1 2009/01/16 14:34:32 kls Exp $
+ * $Id: osd.c 2.2 2009/04/05 10:17:25 kls Exp $
*/
#include "osd.h"
@@ -24,6 +24,10 @@ cPalette::cPalette(int Bpp)
SetAntiAliasGranularity(10, 10);
}
+cPalette::~cPalette()
+{
+}
+
void cPalette::SetAntiAliasGranularity(uint FixedColors, uint BlendColors)
{
if (FixedColors >= MAXNUMCOLORS || BlendColors == 0)
diff --git a/osd.h b/osd.h
index addbf0ec..76909527 100644
--- a/osd.h
+++ b/osd.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osd.h 2.1 2009/01/16 14:37:03 kls Exp $
+ * $Id: osd.h 2.2 2009/04/05 10:16:05 kls Exp $
*/
#ifndef __OSD_H
@@ -62,6 +62,7 @@ protected:
public:
cPalette(int Bpp = 8);
///< Initializes the palette with the given color depth.
+ virtual ~cPalette();
void SetAntiAliasGranularity(uint FixedColors, uint BlendColors);
///< Allows the system to optimize utilization of the limited color
///< palette entries when generating blended colors for anti-aliasing.