summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2007-07-08 19:18:13 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2007-07-08 19:18:13 +0000
commitb173165c3c528ff33da3e3d5bf66d16376db4c39 (patch)
treed9efdbfaa10760c3bd74f5cb2d1ff758f8bf76fa /media-plugins/vdr-skinelchi
parentFixed HOMEPAGE, bug #184643. (diff)
downloadhistorical-b173165c3c528ff33da3e3d5bf66d16376db4c39.tar.gz
historical-b173165c3c528ff33da3e3d5bf66d16376db4c39.tar.bz2
historical-b173165c3c528ff33da3e3d5bf66d16376db4c39.zip
Added first version of patch against font problems.
Package-Manager: portage-2.1.3_rc6
Diffstat (limited to 'media-plugins/vdr-skinelchi')
-rw-r--r--media-plugins/vdr-skinelchi/ChangeLog7
-rw-r--r--media-plugins/vdr-skinelchi/Manifest29
-rw-r--r--media-plugins/vdr-skinelchi/files/vdr-skinelchi-0.1.1_pre2-vdr-1.5.5-getfont.diff425
-rw-r--r--media-plugins/vdr-skinelchi/vdr-skinelchi-0.1.1_pre2-r3.ebuild4
4 files changed, 450 insertions, 15 deletions
diff --git a/media-plugins/vdr-skinelchi/ChangeLog b/media-plugins/vdr-skinelchi/ChangeLog
index b56e04ed2138..79e7abb2de97 100644
--- a/media-plugins/vdr-skinelchi/ChangeLog
+++ b/media-plugins/vdr-skinelchi/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-plugins/vdr-skinelchi
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-skinelchi/ChangeLog,v 1.16 2007/07/08 12:20:14 hd_brummy Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-skinelchi/ChangeLog,v 1.17 2007/07/08 19:18:13 zzam Exp $
+
+ 08 Jul 2007; Matthias Schwarzott <zzam@gentoo.org>
+ +files/vdr-skinelchi-0.1.1_pre2-vdr-1.5.5-getfont.diff,
+ vdr-skinelchi-0.1.1_pre2-r3.ebuild:
+ Added first version of patch against font problems.
*vdr-skinelchi-0.1.1_pre2-r3 (08 Jul 2007)
diff --git a/media-plugins/vdr-skinelchi/Manifest b/media-plugins/vdr-skinelchi/Manifest
index 33070293d6b4..46c48203b913 100644
--- a/media-plugins/vdr-skinelchi/Manifest
+++ b/media-plugins/vdr-skinelchi/Manifest
@@ -9,6 +9,10 @@ AUX vdr-skinelchi-0.1.1_pre2-PatchCollection-FireFly.diff 5002 RMD160 a5dac8ec64
MD5 3f743e1447e1938939f8885bd5d344b4 files/vdr-skinelchi-0.1.1_pre2-PatchCollection-FireFly.diff 5002
RMD160 a5dac8ec644c392e991afd09fcfba2c96c40ae90 files/vdr-skinelchi-0.1.1_pre2-PatchCollection-FireFly.diff 5002
SHA256 a8c779824e774c61e9838a4be40ad6e770668ceefbdefe507686d3bcc93919ec files/vdr-skinelchi-0.1.1_pre2-PatchCollection-FireFly.diff 5002
+AUX vdr-skinelchi-0.1.1_pre2-vdr-1.5.5-getfont.diff 21021 RMD160 85f15e9b8b58fcf60c562c5fa875d5597a1880d5 SHA1 22e8d5e4040e79f40c975d15237d69f226d591f4 SHA256 4b8ff84011123dc69a452161d5c8a7d20fa082978f002f946b4a5965649afff5
+MD5 0cab38a9ce052ebf47d10b0e5739ee5c files/vdr-skinelchi-0.1.1_pre2-vdr-1.5.5-getfont.diff 21021
+RMD160 85f15e9b8b58fcf60c562c5fa875d5597a1880d5 files/vdr-skinelchi-0.1.1_pre2-vdr-1.5.5-getfont.diff 21021
+SHA256 4b8ff84011123dc69a452161d5c8a7d20fa082978f002f946b4a5965649afff5 files/vdr-skinelchi-0.1.1_pre2-vdr-1.5.5-getfont.diff 21021
DIST vdr-skinelchi-0.1.1pre2.tgz 61489 RMD160 fd28310c2b2e03b58c818b72934d66443127e8f5 SHA1 80ce3b2e00e1c03f1ce674924c98290b2385c9d3 SHA256 8a1a79bde62ad26618a8d9cab19b41b1e65443c1ffa3d919f4a899d1557918b2
EBUILD vdr-skinelchi-0.1.1_pre2-r1.ebuild 938 RMD160 a4a11d3a229c9b14fd208cf61e587504a4cbb4cc SHA1 2ea6b216d1a95e8328f127068522277644a65b24 SHA256 5a494850d90844c134410200c3ef4a66a5c5ded26ecbcec63ed5be9f6800d7da
MD5 0dbb8caeef3bfcc9c6fd7602eec3ea38 vdr-skinelchi-0.1.1_pre2-r1.ebuild 938
@@ -18,14 +22,14 @@ EBUILD vdr-skinelchi-0.1.1_pre2-r2.ebuild 945 RMD160 4c3a901021f0b607f1399eb598e
MD5 f119c23b19c72163299f43eecb70bd9d vdr-skinelchi-0.1.1_pre2-r2.ebuild 945
RMD160 4c3a901021f0b607f1399eb598eed9c7504781b0 vdr-skinelchi-0.1.1_pre2-r2.ebuild 945
SHA256 bf0575e2518969cbde1c9fe84a34d79314bc002f654bc527a06e139eb7bae5db vdr-skinelchi-0.1.1_pre2-r2.ebuild 945
-EBUILD vdr-skinelchi-0.1.1_pre2-r3.ebuild 993 RMD160 9cba09fce11674ed489d7504806be6aa18e80382 SHA1 af19c16d74aa7d968f683969104573f44c1033d5 SHA256 94d3030bb339d392919eaf733998225a429f0eff4477b05dde42ba63301d10f1
-MD5 02645a219f3e855f7945e77a917764db vdr-skinelchi-0.1.1_pre2-r3.ebuild 993
-RMD160 9cba09fce11674ed489d7504806be6aa18e80382 vdr-skinelchi-0.1.1_pre2-r3.ebuild 993
-SHA256 94d3030bb339d392919eaf733998225a429f0eff4477b05dde42ba63301d10f1 vdr-skinelchi-0.1.1_pre2-r3.ebuild 993
-MISC ChangeLog 2983 RMD160 ca2cdf057172dd52a6974da85e4105aa29a9ab90 SHA1 d52dcf41d27b55e13af2f7ebf40c569f2474b5b2 SHA256 7b62dc3d7a5055d95512009cb6c6b63242c22542615632d82f5d9bc4936ef6da
-MD5 4444622d204c0674d22e0084df6095a8 ChangeLog 2983
-RMD160 ca2cdf057172dd52a6974da85e4105aa29a9ab90 ChangeLog 2983
-SHA256 7b62dc3d7a5055d95512009cb6c6b63242c22542615632d82f5d9bc4936ef6da ChangeLog 2983
+EBUILD vdr-skinelchi-0.1.1_pre2-r3.ebuild 1087 RMD160 1c1f1935475eecc988dd842d43e7627510294f6d SHA1 d7878b30adb499066e23b14b17eaa61b3a56b99a SHA256 0bafd838cfb11aaf3b73389b5f4c2c7fa71e49fa41535ad10552d7b462a65bb0
+MD5 2e9f22758c4325efd2e2bf51fcda8429 vdr-skinelchi-0.1.1_pre2-r3.ebuild 1087
+RMD160 1c1f1935475eecc988dd842d43e7627510294f6d vdr-skinelchi-0.1.1_pre2-r3.ebuild 1087
+SHA256 0bafd838cfb11aaf3b73389b5f4c2c7fa71e49fa41535ad10552d7b462a65bb0 vdr-skinelchi-0.1.1_pre2-r3.ebuild 1087
+MISC ChangeLog 3182 RMD160 cfd6ce28c0351f50d2ee665a2acc4499af75b281 SHA1 b50910e22d116bd866620a31cca301416a3b5271 SHA256 33cdf88b81fc262b857a32873a5f44ceffd140a667bd897edec074d2952b0da7
+MD5 89329c3b5de9869298b361ea53767886 ChangeLog 3182
+RMD160 cfd6ce28c0351f50d2ee665a2acc4499af75b281 ChangeLog 3182
+SHA256 33cdf88b81fc262b857a32873a5f44ceffd140a667bd897edec074d2952b0da7 ChangeLog 3182
MISC metadata.xml 335 RMD160 eb5fcf03c21510453d995cce8ee8f8a6324e6545 SHA1 e8105cf5fdbf0be508311933b8e34db224e9bc51 SHA256 f8790d655b9660f52dfddc7d5785248a334bae37ef607c6b87f50ed597e76573
MD5 343b9bd95a96c7fa0ca6a4a71f530168 metadata.xml 335
RMD160 eb5fcf03c21510453d995cce8ee8f8a6324e6545 metadata.xml 335
@@ -40,10 +44,9 @@ MD5 26855a8b69da9a867d2d10a2f155f16d files/digest-vdr-skinelchi-0.1.1_pre2-r3 25
RMD160 a93f6a2c6666934c564c444ccbd5fb6c1f742a19 files/digest-vdr-skinelchi-0.1.1_pre2-r3 259
SHA256 74cce77aa57c86fab3e9335c8c40fa0c10c9154f9d7a9928d5050d68a955b906 files/digest-vdr-skinelchi-0.1.1_pre2-r3 259
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.5 (GNU/Linux)
-Comment: added by hd_brummy@gentoo.org
+Version: GnuPG v2.0.5 (GNU/Linux)
-iD8DBQFGkNaIdn07HTTCgIoRAlOHAKCEZ7XftCuGM4Ys5jV7AF38DrnpSACfZYOJ
-lnIiUUfvSGFFpf1DnY+O8/c=
-=6l+P
+iD8DBQFGkTlzt2vP6XvVdOcRAtJaAKDG0fQJFhpZ7saw0ATpopkNc9C3MQCfWWv0
+u0MlFwqFtW+MJlAXRi9AZIQ=
+=W8dq
-----END PGP SIGNATURE-----
diff --git a/media-plugins/vdr-skinelchi/files/vdr-skinelchi-0.1.1_pre2-vdr-1.5.5-getfont.diff b/media-plugins/vdr-skinelchi/files/vdr-skinelchi-0.1.1_pre2-vdr-1.5.5-getfont.diff
new file mode 100644
index 000000000000..d0b0ec8c8b64
--- /dev/null
+++ b/media-plugins/vdr-skinelchi/files/vdr-skinelchi-0.1.1_pre2-vdr-1.5.5-getfont.diff
@@ -0,0 +1,425 @@
+Index: skinelchi-0.1.1pre2/scroll.c
+===================================================================
+--- skinelchi-0.1.1pre2.orig/scroll.c
++++ skinelchi-0.1.1pre2/scroll.c
+@@ -3,7 +3,7 @@
+ cCharScroll::cCharScroll(void) {
+ asprintf(&Text, " ");
+ bmp = NULL;
+- Font = cFont::GetFont(fontOsd);
++ FontType = fontOsd;
+ DestWidth = 0;
+ ColorDepth = 1;
+ Bg = 0xFF000000;
+@@ -21,12 +21,17 @@ cCharScroll::~cCharScroll() {
+ delete(bmp);
+ }
+
++const cFont* cCharScroll::GetFont(void) {
++ return cFont::GetFont(FontType);
++ }
++
+ bool cCharScroll::SetText(const char *text, int textnumber) {
+ if (Text)
+ free(Text);
+ asprintf(&Text, "%s", (text || !isempty(text))? text : " ");
+ if (!DestWidth || !SkinElchiSetup.scrolling)
+ return false;
++ const cFont *Font = GetFont();
+ int width = Font->Width(Text);
+ if (width > DestWidth) {
+ int height = Font->Height();
+Index: skinelchi-0.1.1pre2/scroll.h
+===================================================================
+--- skinelchi-0.1.1pre2.orig/scroll.h
++++ skinelchi-0.1.1pre2/scroll.h
+@@ -16,7 +16,8 @@ public:
+ int Width() const {return bmp ? bmp->Width() : 0;}
+ int Height() const {return bmp ? bmp->Height() : 0;}
+ char *Text;
+- const cFont *Font;
++ eDvbFont FontType;
++ const cFont* GetFont(void);
+ tColor Fg;
+ tColor Bg;
+ int xOff;
+Index: skinelchi-0.1.1pre2/DisplayMessage.c
+===================================================================
+--- skinelchi-0.1.1pre2.orig/DisplayMessage.c
++++ skinelchi-0.1.1pre2/DisplayMessage.c
+@@ -22,7 +22,7 @@ cSkinElchiDisplayMessage::cSkinElchiDisp
+ #ifdef VIDEOSTATUS
+ VideoStatus.Update();
+ #endif
+- font = cFont::GetFont(fontOsd);
++ const cFont *font = cFont::GetFont(fontOsd);
+ lh = font->Height();
+ lhh = lh / 2;
+ #ifdef VIDEOSTATUS
+@@ -35,7 +35,7 @@ cSkinElchiDisplayMessage::cSkinElchiDisp
+ tArea Areas[] = { { 0, 0, (vdrosd ? Setup.OSDWidth : SkinElchiSetup.osdwidth) - 1, lh - 1, 2 } };
+ osd->SetAreas(Areas, sizeof(Areas) / sizeof(tArea));
+ messagechanged = true;
+- MessageScroll.Font = font;
++ MessageScroll.FontType = fontOsd;
+ MessageScroll.DestWidth = osd->Width() - lh;
+ MessageScroll.xOff = lhh;
+ MessageScroll.yOff = 0;
+@@ -75,11 +75,11 @@ void cSkinElchiDisplayMessage::SetMessag
+ MessageScroll.pos = 0;
+ MessageScroll.dir = -1;
+ MessageScroll.Time.Set();
+- osd->DrawText(MessageScroll.xOff, MessageScroll.yOff, MessageScroll.Text, MessageScroll.Fg, MessageScroll.Bg, MessageScroll.Font, MessageScroll.DestWidth);
++ osd->DrawText(MessageScroll.xOff, MessageScroll.yOff, MessageScroll.Text, MessageScroll.Fg, MessageScroll.Bg, MessageScroll.GetFont(), MessageScroll.DestWidth);
+ }
+ else
+ MessageScroll.dir = 0;
+- osd->DrawText(MessageScroll.xOff, MessageScroll.yOff, MessageScroll.Text, MessageScroll.Fg, MessageScroll.Bg, MessageScroll.Font, MessageScroll.DestWidth, 0, taCenter);
++ osd->DrawText(MessageScroll.xOff, MessageScroll.yOff, MessageScroll.Text, MessageScroll.Fg, MessageScroll.Bg, MessageScroll.GetFont(), MessageScroll.DestWidth, 0, taCenter);
+ int wlh2 = osd->Width() - lh / 2;
+ osd->DrawRectangle(wlh2 - 1, 0, wlh2, h1, msb);
+ int w1 = osd->Width() - 1;
+Index: skinelchi-0.1.1pre2/DisplayMessage.h
+===================================================================
+--- skinelchi-0.1.1pre2.orig/DisplayMessage.h
++++ skinelchi-0.1.1pre2/DisplayMessage.h
+@@ -18,7 +18,6 @@ public:
+ class cSkinElchiDisplayMessage : public cSkinDisplayMessage {
+ private:
+ cOsd *osd;
+- const cFont *font;
+ int lh, lhh;
+ bool noflush;
+ public:
+Index: skinelchi-0.1.1pre2/DisplayChannel.c
+===================================================================
+--- skinelchi-0.1.1pre2.orig/DisplayChannel.c
++++ skinelchi-0.1.1pre2/DisplayChannel.c
+@@ -66,8 +66,8 @@ cSkinElchiDisplayChannel::cSkinElchiDisp
+ oldpresentvps = -1;
+ lastSeen = -1;
+ withInfo = WithInfo;
+- smallfont = cFont::GetFont(fontSml);
+- font = cFont::GetFont(fontOsd);
++ const cFont* smallfont = cFont::GetFont(fontSml);
++ const cFont* font = cFont::GetFont(fontOsd);
+ lh = font->Height();
+ slh = smallfont->Height();
+ lhh = lh / 2;
+@@ -201,28 +201,28 @@ cSkinElchiDisplayChannel::cSkinElchiDisp
+ EventScroll.DestWidth = x10 - x5 - 2;
+ EventScroll.Fg = Theme.Color(clrChannelEpgTitle);
+ EventScroll.Bg = Theme.Color(clrChannelEpgTitleBg);
+- EventScroll.Font = font;
++ EventScroll.FontType = fontOsd;
+ EventScroll.xOff = x5 + 2;
+ EventScroll.yOff = y6;
+
+ EventShortScroll.DestWidth = EventScroll.DestWidth;
+ EventShortScroll.Fg = Theme.Color(clrChannelEpgShortText);
+ EventShortScroll.Bg = Theme.Color(clrChannelEpgTitleBg);
+- EventShortScroll.Font = smallfont;
++ EventShortScroll.FontType = fontSml;
+ EventShortScroll.xOff = EventScroll.xOff;
+ EventShortScroll.yOff = y6 + lh;
+
+ NextEventScroll.DestWidth = EventScroll.DestWidth;
+ NextEventScroll.Fg = Theme.Color(clrChannelEpgTitle);
+ NextEventScroll.Bg = Theme.Color(clrChannelEpgTitleBg);
+- NextEventScroll.Font = font;
++ NextEventScroll.FontType = fontOsd;
+ NextEventScroll.xOff = EventScroll.xOff;
+ NextEventScroll.yOff = EventShortScroll.yOff + lh;
+
+ NextEventShortScroll.DestWidth = EventScroll.DestWidth;
+ NextEventShortScroll.Fg = Theme.Color(clrChannelEpgShortText);
+ NextEventShortScroll.Bg = Theme.Color(clrChannelEpgTitleBg);
+- NextEventShortScroll.Font = smallfont;
++ NextEventShortScroll.FontType = fontSml;
+ NextEventShortScroll.xOff = EventScroll.xOff;
+ NextEventShortScroll.yOff = NextEventScroll.yOff + lh;
+ }
+@@ -304,7 +304,7 @@ cSkinElchiDisplayChannel::cSkinElchiDisp
+ AudioStringScroll.DestWidth = x10 - x7;
+ AudioStringScroll.Fg = Theme.Color(clrChannelSymbolOn);
+ AudioStringScroll.Bg = bg;
+- AudioStringScroll.Font = smallfont;
++ AudioStringScroll.FontType = fontSml;
+ AudioStringScroll.xOff = x7;
+ AudioStringScroll.yOff = y1 + lineOffset;
+
+@@ -315,7 +315,7 @@ cSkinElchiDisplayChannel::cSkinElchiDisp
+ x3;
+ ChannelNameScroll.Fg = Theme.Color(clrChannelNameFg);
+ ChannelNameScroll.Bg = Theme.Color(clrChannelNameBg);
+- ChannelNameScroll.Font = smallfont;
++ ChannelNameScroll.FontType = fontSml;
+ ChannelNameScroll.xOff = x3;
+ ChannelNameScroll.yOff = y4 + lineOffset;
+ noflush = false;
+@@ -367,6 +367,7 @@ void cSkinElchiDisplayChannel::SetChanne
+ changed = true;
+ oldpresentvps = -1;
+ osd->DrawRectangle(x9 + lh / 2, y4, x10 - 1, y6 - 1, bg);
++ const cFont* font = cFont::GetFont(fontOsd);
+ int x = x10;
+ if (Channel) {
+ if (!Channel->GroupSep()) {
+@@ -417,6 +418,7 @@ void cSkinElchiDisplayChannel::SetChanne
+ osd->DrawRectangle(x10 - ((oldaudiow > x) ? x : oldaudiow), y1, x10 - 1, y3 - 1, bg);
+ }
+
++ const cFont* smallfont = cFont::GetFont(fontSml);
+ ChannelNameScroll.DestWidth = x9
+ #ifdef VIDEOSTATUS
+ - (((fd_video >= 0 && video) && (SkinElchiSetup.videostatus & 2)) ? smallfont->Width(" 0000*0000 2.21:1 (2:2:2:2:2)") : 0)
+@@ -448,11 +450,11 @@ void cSkinElchiDisplayChannel::SetChanne
+ showVolume = false;
+ }
+ osd->DrawText(x3, y1, number, Theme.Color(clrChannelNumberFg), Theme.Color(clrChannelDateBg), font, font->Width("00000-"));
+- osd->DrawText(ChannelNameScroll.xOff, ChannelNameScroll.yOff, ChannelNameScroll.Text, ChannelNameScroll.Fg, ChannelNameScroll.Bg, ChannelNameScroll.Font, ChannelNameScroll.DestWidth);
++ osd->DrawText(ChannelNameScroll.xOff, ChannelNameScroll.yOff, ChannelNameScroll.Text, ChannelNameScroll.Fg, ChannelNameScroll.Bg, ChannelNameScroll.GetFont(), ChannelNameScroll.DestWidth);
+ if (showVolume)
+ osd->SaveRegion(logox, y4, x11 - 1, y6 - 1);
+ if (SkinElchiSetup.logo) {
+- if (ChannelNameScroll.Font->Width(ChannelNameScroll.Text) != 0) {
++ if (ChannelNameScroll.GetFont()->Width(ChannelNameScroll.Text) != 0) {
+ cBitmap bmp(logox, logoy, osd->GetBitmap(2)?4:8);
+ char *filename;
+ asprintf(&filename, "%s/%s%s", SkinElchiSetup.logodir, ChannelNameScroll.Text, ".xpm");
+@@ -543,6 +545,7 @@ void cSkinElchiDisplayChannel::SetMessag
+ isyslog("skinelchi: cSkinElchiDisplayChannel::SetMessage(%d,%s)", (int)Type, Text);
+ #endif
+ if (Text) {
++ const cFont* font = cFont::GetFont(fontOsd);
+ char *text;
+ asprintf(&text, "%s", Text);
+ /* if (!strcasecmp(text, tr("Going to sleep in about one minute"))) {
+@@ -740,6 +743,7 @@ if (!noflush) {
+ if (tempvideo)
+ free(tempvideo);
+ }
++ const cFont* smallfont = cFont::GetFont(fontSml);
+ int w = smallfont->Width(videoformatchar);
+ int x = x9 - x3;
+ if (w > x)
+@@ -781,6 +785,7 @@ if (!noflush) {
+ cDevice *Device = cDevice::PrimaryDevice();
+ const tTrackId *Track = Device->GetTrack(Device->GetCurrentAudioTrack());
+ int w = 0;
++ const cFont* smallfont = cFont::GetFont(fontSml);
+ if (Track) {
+ char *audiostring = NULL;
+ int numaudiotracks = Device->NumAudioTracks();
+@@ -822,14 +827,14 @@ if (!noflush) {
+ AudioStringScroll.dir = -1;
+ AudioStringScroll.delay = 5;
+ AudioStringScroll.Time.Set();
+- osd->DrawText(AudioStringScroll.xOff, AudioStringScroll.yOff, AudioStringScroll.Text, AudioStringScroll.Fg, AudioStringScroll.Bg, AudioStringScroll.Font, AudioStringScroll.DestWidth);
++ osd->DrawText(AudioStringScroll.xOff, AudioStringScroll.yOff, AudioStringScroll.Text, AudioStringScroll.Fg, AudioStringScroll.Bg, AudioStringScroll.GetFont(), AudioStringScroll.DestWidth);
+ }
+ else {
+ AudioStringScroll.dir = 0;
+ if (AudioStringScroll.DestWidth > w)
+- osd->DrawText(x10 - w, AudioStringScroll.yOff, AudioStringScroll.Text, AudioStringScroll.Fg, AudioStringScroll.Bg, AudioStringScroll.Font, w);
++ osd->DrawText(x10 - w, AudioStringScroll.yOff, AudioStringScroll.Text, AudioStringScroll.Fg, AudioStringScroll.Bg, AudioStringScroll.GetFont(), w);
+ else
+- osd->DrawText(x10 - AudioStringScroll.DestWidth, AudioStringScroll.yOff, AudioStringScroll.Text, AudioStringScroll.Fg, AudioStringScroll.Bg, AudioStringScroll.Font, AudioStringScroll.DestWidth);
++ osd->DrawText(x10 - AudioStringScroll.DestWidth, AudioStringScroll.yOff, AudioStringScroll.Text, AudioStringScroll.Fg, AudioStringScroll.Bg, AudioStringScroll.GetFont(), AudioStringScroll.DestWidth);
+ }
+ changed = true;
+ }
+@@ -876,6 +881,8 @@ if (!noflush) {
+ osd->DrawBitmap(x10 - bmRecording.Width(), y4 + (y6 - y4 - bmRecording.Height()) / 2, bmRecording, Theme.Color(rec ? clrChannelSymbolRecFg : clrChannelSymbolOff), rec ? Theme.Color(clrChannelSymbolRecBg) : bg);
+ changed = true;
+ }
++ const cFont* font = cFont::GetFont(fontOsd);
++ const cFont* smallfont = cFont::GetFont(fontSml);
+ if (VdrStatus.VolumeChange != volumechange) {
+ volumechange = VdrStatus.VolumeChange;
+ oldvolume = VdrStatus.Volume;
+@@ -1003,7 +1010,7 @@ if (!noflush) {
+ }
+ else
+ EventScroll.dir = 0;
+- osd->DrawText(EventScroll.xOff, EventScroll.yOff, EventScroll.Text, EventScroll.Fg, EventScroll.Bg, EventScroll.Font, EventScroll.DestWidth);
++ osd->DrawText(EventScroll.xOff, EventScroll.yOff, EventScroll.Text, EventScroll.Fg, EventScroll.Bg, EventScroll.GetFont(), EventScroll.DestWidth);
+ if (EventShortScroll.SetText(GetEvent->PresentShortText())) {
+ EventShortScroll.pos = 0;
+ EventShortScroll.dir = -1;
+@@ -1012,7 +1019,7 @@ if (!noflush) {
+ }
+ else
+ EventShortScroll.dir = 0;
+- osd->DrawText(EventShortScroll.xOff, EventShortScroll.yOff, EventShortScroll.Text, EventShortScroll.Fg, EventShortScroll.Bg, EventShortScroll.Font, EventShortScroll.DestWidth);
++ osd->DrawText(EventShortScroll.xOff, EventShortScroll.yOff, EventShortScroll.Text, EventShortScroll.Fg, EventShortScroll.Bg, EventShortScroll.GetFont(), EventShortScroll.DestWidth);
+ }
+ else {
+ EventScroll.dir = 0;
+@@ -1028,7 +1035,7 @@ if (!noflush) {
+ }
+ else
+ NextEventScroll.dir = 0;
+- osd->DrawText(NextEventScroll.xOff, NextEventScroll.yOff, NextEventScroll.Text, NextEventScroll.Fg, NextEventScroll.Bg, NextEventScroll.Font, NextEventScroll.DestWidth);
++ osd->DrawText(NextEventScroll.xOff, NextEventScroll.yOff, NextEventScroll.Text, NextEventScroll.Fg, NextEventScroll.Bg, NextEventScroll.GetFont(), NextEventScroll.DestWidth);
+ if (NextEventShortScroll.SetText(GetEvent->FollowingShortText())) {
+ NextEventShortScroll.pos = 0;
+ NextEventShortScroll.dir = -1;
+@@ -1037,7 +1044,7 @@ if (!noflush) {
+ }
+ else
+ NextEventShortScroll.dir = 0;
+- osd->DrawText(NextEventShortScroll.xOff, NextEventShortScroll.yOff, NextEventShortScroll.Text, NextEventShortScroll.Fg, NextEventShortScroll.Bg, NextEventShortScroll.Font, NextEventShortScroll.DestWidth);
++ osd->DrawText(NextEventShortScroll.xOff, NextEventShortScroll.yOff, NextEventShortScroll.Text, NextEventShortScroll.Fg, NextEventShortScroll.Bg, NextEventShortScroll.GetFont(), NextEventShortScroll.DestWidth);
+ }
+ else {
+ NextEventScroll.dir = 0;
+Index: skinelchi-0.1.1pre2/DisplayChannel.h
+===================================================================
+--- skinelchi-0.1.1pre2.orig/DisplayChannel.h
++++ skinelchi-0.1.1pre2/DisplayChannel.h
+@@ -75,8 +75,8 @@ private:
+ int logox, logoy;
+ int x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11;
+ int y0, y1, y2, y3, y4, y5, y6, y7, y8, y9;
+- const cFont *smallfont;
+- const cFont *font;
++ // const cFont *smallfont;
++ // const cFont *font;
+ bool withInfo, rec, message, showVolume, sleeptimermessage;
+ int lh, slh, lhh, lineOffset;
+ tColor bg;
+Index: skinelchi-0.1.1pre2/DisplayMenu.c
+===================================================================
+--- skinelchi-0.1.1pre2.orig/DisplayMenu.c
++++ skinelchi-0.1.1pre2/DisplayMenu.c
+@@ -448,7 +448,7 @@ void cSkinElchiDisplayMenu::SetTitle(con
+ TitleScroll.DestWidth = x - x2;
+ TitleScroll.Fg = Theme.Color(clrMenuTitleFg);
+ TitleScroll.Bg = Theme.Color(clrMenuTitleBg);
+- TitleScroll.Font = smallfont;
++ TitleScroll.FontType = fontSml;
+ if (TitleScroll.SetText(Title)) {
+ TitleScroll.pos = 0;
+ TitleScroll.dir = -1;
+@@ -456,7 +456,7 @@ void cSkinElchiDisplayMenu::SetTitle(con
+ }
+ else
+ TitleScroll.dir = 0;
+- osd->DrawText(TitleScroll.xOff, TitleScroll.yOff, TitleScroll.Text, TitleScroll.Fg, TitleScroll.Bg, TitleScroll.Font, TitleScroll.DestWidth);
++ osd->DrawText(TitleScroll.xOff, TitleScroll.yOff, TitleScroll.Text, TitleScroll.Fg, TitleScroll.Bg, TitleScroll.GetFont(), TitleScroll.DestWidth);
+ int y = y2 - (font->Height() - smallfont->Height());
+ osd->DrawRectangle(x, TitleScroll.yOff, xx - 1, y - 1, TitleScroll.Bg);
+ osd->DrawRectangle(TitleScroll.xOff, y, x6 - 1, y2 - 1, TitleScroll.Bg);
+@@ -653,7 +653,7 @@ void cSkinElchiDisplayMenu::SetItem(cons
+ CurrentItemScroll.DestWidth = x - CurrentItemScroll.xOff;
+ CurrentItemScroll.Fg = ColorFg;
+ CurrentItemScroll.Bg = ColorBg;
+- CurrentItemScroll.Font = font;
++ CurrentItemScroll.FontType = fontOsd;
+ if (CurrentItemScroll.SetText(s)) {
+ CurrentItemScroll.pos = 0;
+ CurrentItemScroll.dir = -1;
+Index: skinelchi-0.1.1pre2/DisplayReplay.c
+===================================================================
+--- skinelchi-0.1.1pre2.orig/DisplayReplay.c
++++ skinelchi-0.1.1pre2/DisplayReplay.c
+@@ -187,7 +187,7 @@ cSkinElchiDisplayReplay::cSkinElchiDispl
+ TitleScroll.DestWidth = x4 - x0;
+ TitleScroll.Fg = Theme.Color(clrReplayTitleFg);
+ TitleScroll.Bg = Theme.Color(clrReplayTitleBg);
+- TitleScroll.Font = smallfont;
++ TitleScroll.FontType = fontSml;
+ TitleScroll.xOff = x0;
+ TitleScroll.yOff = y0;
+ TitleScroll.delay = 20;
+@@ -244,10 +244,10 @@ void cSkinElchiDisplayReplay::SetTitle(c
+ TitleScroll.pos = 0;
+ TitleScroll.dir = -1;
+ TitleScroll.Time.Set();
+- osd->DrawText(x0, y0, TitleScroll.Text, Theme.Color(clrReplayTitleFg), Theme.Color(clrReplayTitleBg), TitleScroll.Font, TitleScroll.DestWidth);
++ osd->DrawText(x0, y0, TitleScroll.Text, Theme.Color(clrReplayTitleFg), Theme.Color(clrReplayTitleBg), TitleScroll.GetFont(), TitleScroll.DestWidth);
+ }
+ else {
+- osd->DrawText(x0, y0, title, Theme.Color(clrReplayTitleFg), Theme.Color(clrReplayTitleBg), TitleScroll.Font, w);
++ osd->DrawText(x0, y0, title, Theme.Color(clrReplayTitleFg), Theme.Color(clrReplayTitleBg), TitleScroll.GetFont(), w);
+ TitleScroll.dir = 0;
+ tColor tr = Theme.Color(Transparent);
+ osd->DrawRectangle(w, y0, w + 3 - 1, y0 + 3 - 1, tr);
+@@ -488,7 +488,7 @@ if (!noflush) {
+ asprintf(&titlestatus, "%s - no videosize available ", titlestatus);
+ if (!modeonly && !showVolume && strcmp(oldtitlestatus, titlestatus)) {
+ asprintf(&oldtitlestatus, "%s", titlestatus);
+- int w = TitleScroll.Font->Width(titlestatus);
++ int w = TitleScroll.GetFont()->Width(titlestatus);
+ if (w > TitleScroll.DestWidth)
+ w = TitleScroll.DestWidth;
+ int h = font->Height() - smallfont->Height();
+@@ -498,11 +498,11 @@ if (!noflush) {
+ TitleScroll.dir = -1;
+ TitleScroll.delay = 20;
+ TitleScroll.Time.Set();
+- osd->DrawText(TitleScroll.xOff, TitleScroll.yOff, TitleScroll.Text, TitleScroll.Fg, TitleScroll.Bg, TitleScroll.Font, TitleScroll.DestWidth);
++ osd->DrawText(TitleScroll.xOff, TitleScroll.yOff, TitleScroll.Text, TitleScroll.Fg, TitleScroll.Bg, TitleScroll.GetFont(), TitleScroll.DestWidth);
+ }
+ }
+ else {
+- osd->DrawText(TitleScroll.xOff, TitleScroll.yOff, TitleScroll.Text, TitleScroll.Fg, TitleScroll.Bg, TitleScroll.Font, w);
++ osd->DrawText(TitleScroll.xOff, TitleScroll.yOff, TitleScroll.Text, TitleScroll.Fg, TitleScroll.Bg, TitleScroll.GetFont(), w);
+ TitleScroll.dir = 0;
+ tColor tr = Theme.Color(Transparent);
+ osd->DrawRectangle(w, y0, w + 3 - 1, y0 + 3 - 1, tr);
+Index: skinelchi-0.1.1pre2/DisplayTracks.c
+===================================================================
+--- skinelchi-0.1.1pre2.orig/DisplayTracks.c
++++ skinelchi-0.1.1pre2/DisplayTracks.c
+@@ -98,7 +98,7 @@ cSkinElchiDisplayTracks::cSkinElchiDispl
+ if (numTracks > (offset + MaxTracks))
+ osd->DrawBitmap(x2, y3 + (y4 - y3 - bmArrowDown.Height()) / 2, bmArrowDown, Theme.Color(clrMenuItemSelectable), Theme.Color(clrBackground));
+ MessageScroll.DestWidth = x2 - x1;
+- MessageScroll.Font = font;
++ MessageScroll.FontType = fontOsd;
+ MessageScroll.xOff = x1;
+ MessageScroll.yOff = y3;
+ MessageScroll.delay = 20;
+@@ -228,11 +228,11 @@ void cSkinElchiDisplayTracks::SetMessage
+ MessageScroll.pos = 0;
+ MessageScroll.dir = -1;
+ MessageScroll.Time.Set();
+- osd->DrawText(MessageScroll.xOff, MessageScroll.yOff, MessageScroll.Text, MessageScroll.Fg, MessageScroll.Bg, MessageScroll.Font, MessageScroll.DestWidth);
++ osd->DrawText(MessageScroll.xOff, MessageScroll.yOff, MessageScroll.Text, MessageScroll.Fg, MessageScroll.Bg, MessageScroll.GetFont(), MessageScroll.DestWidth);
+ }
+ else {
+ MessageScroll.dir = 0;
+- osd->DrawText(MessageScroll.xOff, MessageScroll.yOff, MessageScroll.Text, MessageScroll.Fg, MessageScroll.Bg, MessageScroll.Font, MessageScroll.DestWidth, taCenter);
++ osd->DrawText(MessageScroll.xOff, MessageScroll.yOff, MessageScroll.Text, MessageScroll.Fg, MessageScroll.Bg, MessageScroll.GetFont(), MessageScroll.DestWidth, taCenter);
+ }
+ osd->DrawEllipse(x2, y3, x3 - 1, y4 - 1, MessageScroll.Bg, 5);
+ }
+Index: skinelchi-0.1.1pre2/DisplayVolume.c
+===================================================================
+--- skinelchi-0.1.1pre2.orig/DisplayVolume.c
++++ skinelchi-0.1.1pre2/DisplayVolume.c
+@@ -37,7 +37,7 @@ cSkinElchiDisplayVolume::cSkinElchiDispl
+ mute = -1;
+ current = -1;
+ MessageScroll.DestWidth = vdrosd ? Setup.OSDWidth : SkinElchiSetup.osdwidth;
+- MessageScroll.Font = font;
++ MessageScroll.FontType = fontOsd;
+ MessageScroll.xOff = 0;
+ MessageScroll.yOff = lh;
+ MessageScroll.delay = 20;
+@@ -122,11 +122,11 @@ void cSkinElchiDisplayVolume::SetMessage
+ MessageScroll.pos = 0;
+ MessageScroll.dir = -1;
+ MessageScroll.Time.Set();
+- osd->DrawText(MessageScroll.xOff, MessageScroll.yOff, MessageScroll.Text, MessageScroll.Fg, MessageScroll.Bg, MessageScroll.Font, MessageScroll.DestWidth);
++ osd->DrawText(MessageScroll.xOff, MessageScroll.yOff, MessageScroll.Text, MessageScroll.Fg, MessageScroll.Bg, MessageScroll.GetFont(), MessageScroll.DestWidth);
+ }
+ else {
+ MessageScroll.dir = 0;
+- osd->DrawText(MessageScroll.xOff, MessageScroll.yOff, MessageScroll.Text, MessageScroll.Fg, MessageScroll.Bg, MessageScroll.Font, MessageScroll.DestWidth, 0, taCenter);
++ osd->DrawText(MessageScroll.xOff, MessageScroll.yOff, MessageScroll.Text, MessageScroll.Fg, MessageScroll.Bg, MessageScroll.GetFont(), MessageScroll.DestWidth, 0, taCenter);
+ }
+ osd->DrawEllipse((vdrosd ? Setup.OSDWidth : SkinElchiSetup.osdwidth) - lhh, lh, (vdrosd ? Setup.OSDWidth : SkinElchiSetup.osdwidth) - 1, 2 * lh - 1, MessageScroll.Bg, 5);
+ }
diff --git a/media-plugins/vdr-skinelchi/vdr-skinelchi-0.1.1_pre2-r3.ebuild b/media-plugins/vdr-skinelchi/vdr-skinelchi-0.1.1_pre2-r3.ebuild
index c963999a09cf..9c3485d123bb 100644
--- a/media-plugins/vdr-skinelchi/vdr-skinelchi-0.1.1_pre2-r3.ebuild
+++ b/media-plugins/vdr-skinelchi/vdr-skinelchi-0.1.1_pre2-r3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-skinelchi/vdr-skinelchi-0.1.1_pre2-r3.ebuild,v 1.1 2007/07/08 12:20:14 hd_brummy Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-skinelchi/vdr-skinelchi-0.1.1_pre2-r3.ebuild,v 1.2 2007/07/08 19:18:13 zzam Exp $
inherit vdr-plugin
@@ -25,6 +25,8 @@ S=${WORKDIR}/${MY_P#vdr-}
VDR_RCADDON_FILE="${FILESDIR}/rc-addon-${PV}-r1.sh"
PATCHES="${FILESDIR}/${P}-PatchCollection-FireFly.diff"
+#PATCHES="${FILESDIR}/${P}-PatchCollection-FireFly.diff
+# ${FILESDIR}/${P}-vdr-1.5.5-getfont.diff"
src_unpack() {
vdr-plugin_src_unpack