mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Added missing virtual destructor to cPalette
This commit is contained in:
parent
168907fd0b
commit
9ff445dce4
1
HISTORY
1
HISTORY
@ -6014,3 +6014,4 @@ Video Disk Recorder Revision History
|
|||||||
has been played. cDvbPlayer::Action() no longer calls DeviceFlush() (thanks to
|
has been played. cDvbPlayer::Action() no longer calls DeviceFlush() (thanks to
|
||||||
Reinhard Nissl for making sure vdr-xine no longer needs this).
|
Reinhard Nissl for making sure vdr-xine no longer needs this).
|
||||||
- Added missing '[]' to the delete operator in cMenuEditStrItem::~cMenuEditStrItem().
|
- Added missing '[]' to the delete operator in cMenuEditStrItem::~cMenuEditStrItem().
|
||||||
|
- Added missing virtual destructor to cPalette.
|
||||||
|
6
osd.c
6
osd.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* 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"
|
#include "osd.h"
|
||||||
@ -24,6 +24,10 @@ cPalette::cPalette(int Bpp)
|
|||||||
SetAntiAliasGranularity(10, 10);
|
SetAntiAliasGranularity(10, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cPalette::~cPalette()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
void cPalette::SetAntiAliasGranularity(uint FixedColors, uint BlendColors)
|
void cPalette::SetAntiAliasGranularity(uint FixedColors, uint BlendColors)
|
||||||
{
|
{
|
||||||
if (FixedColors >= MAXNUMCOLORS || BlendColors == 0)
|
if (FixedColors >= MAXNUMCOLORS || BlendColors == 0)
|
||||||
|
3
osd.h
3
osd.h
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* 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
|
#ifndef __OSD_H
|
||||||
@ -62,6 +62,7 @@ protected:
|
|||||||
public:
|
public:
|
||||||
cPalette(int Bpp = 8);
|
cPalette(int Bpp = 8);
|
||||||
///< Initializes the palette with the given color depth.
|
///< Initializes the palette with the given color depth.
|
||||||
|
virtual ~cPalette();
|
||||||
void SetAntiAliasGranularity(uint FixedColors, uint BlendColors);
|
void SetAntiAliasGranularity(uint FixedColors, uint BlendColors);
|
||||||
///< Allows the system to optimize utilization of the limited color
|
///< Allows the system to optimize utilization of the limited color
|
||||||
///< palette entries when generating blended colors for anti-aliasing.
|
///< palette entries when generating blended colors for anti-aliasing.
|
||||||
|
Loading…
Reference in New Issue
Block a user