summaryrefslogtreecommitdiff
path: root/bitmap.c
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2005-01-28 21:26:34 +0000
committerlordjaxom <lordjaxom>2005-01-28 21:26:34 +0000
commitc5a641a335f198435cd84f0e5e45dbab94089a81 (patch)
tree2d7db171fa69c7ba7d93a26edad2094fc2d254a3 /bitmap.c
parent2c823c26e341dc67052467864e2299663c9a7b8f (diff)
downloadvdr-plugin-text2skin-c5a641a335f198435cd84f0e5e45dbab94089a81.tar.gz
vdr-plugin-text2skin-c5a641a335f198435cd84f0e5e45dbab94089a81.tar.bz2
- fixup of template handling, which is obviously too broken to work everywhere
Diffstat (limited to 'bitmap.c')
-rw-r--r--bitmap.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/bitmap.c b/bitmap.c
index 71bfe1d..a6a5fc7 100644
--- a/bitmap.c
+++ b/bitmap.c
@@ -1,5 +1,5 @@
/*
- * $Id: bitmap.c,v 1.9 2005/01/27 17:31:35 lordjaxom Exp $
+ * $Id: bitmap.c,v 1.10 2005/01/28 21:26:34 lordjaxom Exp $
*/
#include "bitmap.h"
@@ -16,7 +16,18 @@ using namespace Magick;
#endif
#include <glob.h>
-cxCache<tBitmapSpec,cText2SkinBitmap*> cText2SkinBitmap::mCache(Text2SkinSetup.MaxCacheFill);
+cBitmapCache cText2SkinBitmap::mCache(Text2SkinSetup.MaxCacheFill);
+
+void cBitmapCache::DeleteObject(const tBitmapSpec &Key, cText2SkinBitmap *&Data)
+{
+ delete Data;
+}
+
+void cBitmapCache::ResetObject(cText2SkinBitmap *&Data)
+{
+ Data->Reset();
+}
+
cText2SkinBitmap *cText2SkinBitmap::Load(const std::string &Filename, int Alpha, int height,
int width, int colors, bool Quiet) {