mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
Refresh imgCache if OsdProvider was changed (simple fix)
This commit is contained in:
parent
8c9a0d7925
commit
3fbc601315
3
config.c
3
config.c
@ -24,6 +24,8 @@ cDesignerConfig::cDesignerConfig() {
|
||||
numCustomTokens = 10;
|
||||
//Frames per Second to display animations
|
||||
FPS = 50;
|
||||
//Fixes some issues with openGL
|
||||
fixForopenGL = 0;
|
||||
//remember current skin and theme, osd size and osd fonts
|
||||
SetSkin();
|
||||
SetOSDSize();
|
||||
@ -517,6 +519,7 @@ bool cDesignerConfig::SetupParse(const char *Name, const char *Value) {
|
||||
else if (!strcasecmp(Name, "RerunMaxChannel")) rerunMaxChannel = atoi(Value);
|
||||
else if (!strcasecmp(Name, "NumCustomTokens")) numCustomTokens = atoi(Value);
|
||||
else if (!strcasecmp(Name, "FPS")) FPS = atoi(Value);
|
||||
else if (!strcasecmp(Name, "FixForopenGL")) fixForopenGL = atoi(Value);
|
||||
else pluginSetupParam = false;
|
||||
|
||||
if (!pluginSetupParam) {
|
||||
|
1
config.h
1
config.h
@ -116,6 +116,7 @@ public:
|
||||
int rerunMaxChannel;
|
||||
int numCustomTokens;
|
||||
int FPS;
|
||||
int fixForopenGL;
|
||||
//TemplateReload on Setup Close
|
||||
bool setupCloseDoReload;
|
||||
};
|
||||
|
@ -171,6 +171,7 @@ void cSkinDesigner::ListCustomTokens(void) {
|
||||
}
|
||||
|
||||
skindesignerapi::ISkinDisplayPlugin *cSkinDesigner::GetDisplayPlugin(int plugId) {
|
||||
Init();
|
||||
map<int, cViewPlugin*>::iterator hit = pluginViews.find(plugId);
|
||||
if (hit == pluginViews.end())
|
||||
return NULL;
|
||||
@ -235,6 +236,14 @@ void cSkinDesigner::Init(void) {
|
||||
watch.Stop("templates loaded and caches created");
|
||||
}
|
||||
}
|
||||
else if (config.fixForopenGL)
|
||||
{
|
||||
dsyslog ("skindesigner: fix for openGL activ");
|
||||
if (imgCache)
|
||||
delete imgCache;
|
||||
imgCache = new cImageCache();
|
||||
imgCache->SetPathes();
|
||||
}
|
||||
}
|
||||
|
||||
void cSkinDesigner::DeleteViews(void) {
|
||||
|
@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: vdr-skindesigner 0.0.1\n"
|
||||
"Report-Msgid-Bugs-To: <see README>\n"
|
||||
"POT-Creation-Date: 2020-07-15 13:04+0200\n"
|
||||
"POT-Creation-Date: 2020-09-21 12:13+0200\n"
|
||||
"PO-Revision-Date: 2014-09-27 11:02+0200\n"
|
||||
"Last-Translator: Louis Braun <louis.braun@gmx.de>\n"
|
||||
"Language-Team: \n"
|
||||
@ -87,6 +87,9 @@ msgstr "Skin gelöscht"
|
||||
msgid "Plugin Setup"
|
||||
msgstr ""
|
||||
|
||||
msgid "Workaround for openGL"
|
||||
msgstr ""
|
||||
|
||||
msgid "Frames per Second to display animations"
|
||||
msgstr "Frames pro Sekunde für Animationen"
|
||||
|
||||
|
@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: vdr-skindesigner 0.2.0\n"
|
||||
"Report-Msgid-Bugs-To: <see README>\n"
|
||||
"POT-Creation-Date: 2020-07-15 13:04+0200\n"
|
||||
"POT-Creation-Date: 2020-09-21 12:13+0200\n"
|
||||
"PO-Revision-Date: 2015-01-25 01:25+0200\n"
|
||||
"Last-Translator: Rolf Ahrenberg\n"
|
||||
"Language-Team: Finnish\n"
|
||||
@ -87,6 +87,9 @@ msgstr "Ulkoasu poistettu"
|
||||
msgid "Plugin Setup"
|
||||
msgstr "Yleiset"
|
||||
|
||||
msgid "Workaround for openGL"
|
||||
msgstr ""
|
||||
|
||||
msgid "Frames per Second to display animations"
|
||||
msgstr ""
|
||||
|
||||
|
@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: vdr-skindesigner 0.0.1\n"
|
||||
"Report-Msgid-Bugs-To: <see README>\n"
|
||||
"POT-Creation-Date: 2020-07-15 13:04+0200\n"
|
||||
"POT-Creation-Date: 2020-09-21 12:13+0200\n"
|
||||
"PO-Revision-Date: 2015-08-09 11:02+0200\n"
|
||||
"Last-Translator: fiveten_59\n"
|
||||
"Language-Team: Italian\n"
|
||||
@ -87,6 +87,9 @@ msgstr "Skin eliminata"
|
||||
msgid "Plugin Setup"
|
||||
msgstr "Plugin Setup"
|
||||
|
||||
msgid "Workaround for openGL"
|
||||
msgstr ""
|
||||
|
||||
msgid "Frames per Second to display animations"
|
||||
msgstr ""
|
||||
|
||||
|
4
setup.c
4
setup.c
@ -134,6 +134,7 @@ cSkinDesignerSetup::cSkinDesignerSetup(skindesignerapi::cPluginStructure *skinPr
|
||||
rerunMaxChannel = config.rerunMaxChannel;
|
||||
numCustomTokens = config.numCustomTokens;
|
||||
FPS = config.FPS;
|
||||
fixForopenGL = config.fixForopenGL;
|
||||
menuDisplayStyle[0] = tr("after one another");
|
||||
menuDisplayStyle[1] = tr("at one go");
|
||||
#ifndef DO_NOT_USE_SKININSTALLER
|
||||
@ -276,6 +277,7 @@ void cSkinDesignerSetup::Store(void) {
|
||||
config.rerunMaxChannel = rerunMaxChannel;
|
||||
config.numCustomTokens = numCustomTokens;
|
||||
config.FPS = FPS;
|
||||
config.fixForopenGL = fixForopenGL;
|
||||
|
||||
config.InitSetupIterator();
|
||||
cSkinSetup *skinSetup = NULL;
|
||||
@ -302,6 +304,7 @@ void cSkinDesignerSetup::Store(void) {
|
||||
SetupStore("RerunMaxChannel", rerunMaxChannel);
|
||||
SetupStore("NumCustomTokens", numCustomTokens);
|
||||
SetupStore("FPS", FPS);
|
||||
SetupStore("FixForopenGL", fixForopenGL);
|
||||
}
|
||||
|
||||
cOsdItem *cSkinDesignerSetup::InfoItem(const char *label) {
|
||||
@ -314,6 +317,7 @@ cOsdItem *cSkinDesignerSetup::InfoItem(const char *label) {
|
||||
void cSkinDesignerSetup::PluginSetup(void) {
|
||||
Add(InfoItem(tr("Plugin Setup")));
|
||||
|
||||
Add(new cMenuEditBoolItem(tr("Workaround for openGL"), &fixForopenGL));
|
||||
Add(new cMenuEditIntItem(tr("Frames per Second to display animations"), &FPS, 10, 60));
|
||||
Add(new cMenuEditIntItem(tr("Maximum number of custom tokens"), &numCustomTokens, 0, 100));
|
||||
|
||||
|
1
setup.h
1
setup.h
@ -51,6 +51,7 @@ private:
|
||||
int rerunMaxChannel;
|
||||
int numCustomTokens;
|
||||
int FPS;
|
||||
int fixForopenGL;
|
||||
const char *menuDisplayStyle[2];
|
||||
void Setup(void);
|
||||
virtual void Store(void);
|
||||
|
@ -20,7 +20,7 @@
|
||||
#endif
|
||||
|
||||
|
||||
static const char *VERSION = "1.2.8.4";
|
||||
static const char *VERSION = "1.2.8.5";
|
||||
static const char *DESCRIPTION = trNOOP("Skin Designer");
|
||||
|
||||
class cPluginSkinDesigner : public cPlugin, public skindesignerapi::SkindesignerAPI {
|
||||
|
Loading…
Reference in New Issue
Block a user