From: | "Matthias Schwarzott (zzam)" <zzam@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-video/vdr/files: vdr-1.6.0-dxr3-subtitlehack.diff |
Date: | Sat, 05 Apr 2008 16:02:35 |
Message-Id: | E1JiAqe-0001Ir-Dx@stork.gentoo.org |
1 | zzam 08/04/05 16:02:32 |
2 | |
3 | Added: vdr-1.6.0-dxr3-subtitlehack.diff |
4 | Log: |
5 | Bump version of extensions patch to 56. Add dxr3 hack for subtitles, Bug #215460. Small cleanups of ebuild. |
6 | (Portage version: 2.1.5_rc1) |
7 | |
8 | Revision Changes Path |
9 | 1.1 media-video/vdr/files/vdr-1.6.0-dxr3-subtitlehack.diff |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vdr/files/vdr-1.6.0-dxr3-subtitlehack.diff?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vdr/files/vdr-1.6.0-dxr3-subtitlehack.diff?rev=1.1&content-type=text/plain |
13 | |
14 | Index: vdr-1.6.0-dxr3-subtitlehack.diff |
15 | =================================================================== |
16 | --- dvbsubtitle.c.orig 2008-03-06 21:38:45.698657000 +0100 |
17 | +++ dvbsubtitle.c 2008-03-06 21:41:58.308657000 +0100 |
18 | @@ -983,8 +983,15 @@ |
19 | return; |
20 | tArea *Areas = Page->GetAreas(); |
21 | int NumAreas = Page->regions.Count(); |
22 | - int Bpp = 8; |
23 | + //int Bpp = 8; |
24 | bool Reduced = false; |
25 | + for (int i = 0; i < NumAreas; i++) { |
26 | + if (Areas[i].bpp > 2) { |
27 | + Areas[i].bpp = 2; |
28 | + Reduced = true; |
29 | + } |
30 | + } |
31 | + /* |
32 | while (osd->CanHandleAreas(Areas, NumAreas) != oeOk) { |
33 | int HalfBpp = Bpp / 2; |
34 | if (HalfBpp >= 2) { |
35 | @@ -999,6 +1006,7 @@ |
36 | else |
37 | return; // unable to draw bitmaps |
38 | } |
39 | + */ |
40 | if (Reduced) { |
41 | for (int i = 0; i < NumAreas; i++) { |
42 | cSubtitleRegion *sr = Page->regions.Get(i); |
43 | |
44 | |
45 | |
46 | |
47 | -- |
48 | gentoo-commits@l.g.o mailing list |