summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY2
-rw-r--r--xml/skin.c12
-rw-r--r--xml/skin.h4
3 files changed, 16 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index ca87471..3e023f5 100644
--- a/HISTORY
+++ b/HISTORY
@@ -114,6 +114,8 @@ ____-__-__: Version 1.3
(references #142)
- Updated README.de
- Completed documentation of new tokens (closes #142)
+- Added HD patch with new absolute modes: abs1280x720, abs1920x1080 (thanks to
+ gda@vdrportal)
2009-06-01: Version 1.2
diff --git a/xml/skin.c b/xml/skin.c
index 2935dee..07eb5b0 100644
--- a/xml/skin.c
+++ b/xml/skin.c
@@ -7,7 +7,7 @@
#include <vdr/tools.h>
#include <vdr/config.h>
-const std::string ScreenBases[] = { "relative", "absolute" };
+const std::string ScreenBases[] = { "relative", "absolute", "abs1280x720", "abs1920x1080" };
cxVersion::cxVersion(int ma, int min):
mMajor(ma),
@@ -63,6 +63,16 @@ void cxSkin::SetBase(eScreenBase Base)
mBaseSize = txSize(720, 576); //XXX
break;
+ case abs1280x720:
+ mBaseOffset = txPoint(0, 0);
+ mBaseSize = txSize(1280, 720); //XXX
+ break;
+
+ case abs1920x1080:
+ mBaseOffset = txPoint(0, 0);
+ mBaseSize = txSize(1920, 1080); //XXX
+ break;
+
default:
break;
}
diff --git a/xml/skin.h b/xml/skin.h
index 49656ea..6f37378 100644
--- a/xml/skin.h
+++ b/xml/skin.h
@@ -65,7 +65,9 @@ public:
enum eScreenBase {
relative,
absolute,
-#define __COUNT_BASE__ (absolute + 1)
+ abs1280x720,
+ abs1920x1080,
+#define __COUNT_BASE__ (abs1920x1080 + 1)
};
private: