summaryrefslogtreecommitdiff
path: root/osdbase.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-10-24 12:53:12 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-10-24 12:53:12 +0200
commitc94570e69dfca940ba04829debb93e421f77c4f0 (patch)
tree26488bf901cb4e7a2b30db914086cb0f45dd2349 /osdbase.c
parent2b29a5ce367d464fd10d6014990c881eccf5207e (diff)
downloadvdr-c94570e69dfca940ba04829debb93e421f77c4f0.tar.gz
vdr-c94570e69dfca940ba04829debb93e421f77c4f0.tar.bz2
Changed font handling to allow language specific character sets; adopted the small font character set from the "Elchi" patch
Diffstat (limited to 'osdbase.c')
-rw-r--r--osdbase.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/osdbase.c b/osdbase.c
index 98cae824..2ba4de85 100644
--- a/osdbase.c
+++ b/osdbase.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osdbase.c 1.10 2003/08/24 11:38:27 kls Exp $
+ * $Id: osdbase.c 1.11 2003/10/19 14:32:32 kls Exp $
*/
#include "osdbase.h"
@@ -131,7 +131,6 @@ cBitmap::cBitmap(int Width, int Height, int Bpp, bool ClearWithBackground)
cBitmap::~cBitmap()
{
- delete font;
free(bitmap);
}
@@ -139,8 +138,7 @@ eDvbFont cBitmap::SetFont(eDvbFont Font)
{
eDvbFont oldFont = fontType;
if (fontType != Font || !font) {
- delete font;
- font = new cFont(Font);
+ font = cFont::GetFont(Font);
fontType = Font;
}
return oldFont;