summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2004-06-18 16:41:02 +0000
committerlordjaxom <lordjaxom>2004-06-18 16:41:02 +0000
commitde602ae6486b181ec081749a510cfcf15c71c817 (patch)
treea6b7efe2b4ad29d6c88b588e8a9b0d7bbeff7c08 /setup.c
parent1d3cd38e88ae97dd6906f9818d52b9ef07bf057d (diff)
downloadvdr-plugin-text2skin-de602ae6486b181ec081749a510cfcf15c71c817.tar.gz
vdr-plugin-text2skin-de602ae6486b181ec081749a510cfcf15c71c817.tar.bz2
- reimplemented image cache (fixes segfaults and speeds up image loading)v0.0.6
- fixed a recursion wenn de-initializing ImageMagick (crashes on exit) - reverted the changes in ImageMagick-loader that concerned palettes (obviously some versions of ImageMagick are BROKEN!!! I am using 5.5.7 which works fine. Version 5.4.7 shows random errors) - reimplemented "Flush image cache" into the setup menu - included -lMagick into Makefile as a workaround for Debian (and others possibly) - fixed display of scrollbar
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/setup.c b/setup.c
index 45b4ee8..3a96131 100644
--- a/setup.c
+++ b/setup.c
@@ -1,5 +1,5 @@
/*
- * $Id: setup.c,v 1.3 2004/06/12 21:16:18 lordjaxom Exp $
+ * $Id: setup.c,v 1.4 2004/06/18 16:08:11 lordjaxom Exp $
*/
#include "setup.h"
@@ -23,6 +23,7 @@ bool cText2SkinSetup::SetupParse(const char *Name, const char *Value) {
cText2SkinSetupPage::cText2SkinSetupPage(void) {
mData = Text2SkinSetup;
+ Add(new cOsdItem(tr("Flush image cache"), osUser1));
Add(new cMenuEditIntItem(tr("Max. image cache size"), &mData.MaxCacheFill));
}
@@ -34,3 +35,14 @@ void cText2SkinSetupPage::Store(void) {
Text2SkinSetup = mData;
}
+eOSState cText2SkinSetupPage::ProcessKey(eKeys Key) {
+ eOSState state = cMenuSetupPage::ProcessKey(Key);
+ if (state == osUser1) {
+ Skins.Message(mtInfo, tr("Flushing image cache..."));
+ cText2SkinBitmap::FlushCache();
+ Skins.Message(mtInfo, NULL);
+ return osContinue;
+ }
+ return state;
+}
+