Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37834386
en ru br
ALT Linux repos
S:2.2.0-alt12
D:1.6.0-alt1
3.0: 1.3.15-alt1

Group :: Video
RPM: vdr

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: vdr-1.6.0-dxr3-subtitles.patch
Download


Hack to improve subtitles experience with VDR 1.6.0 and DXR3 (Luca Olivetti).
--- dvbsubtitle.c.orig	2008-03-06 21:38:45.698657000 +0100
+++ dvbsubtitle.c	2008-03-06 21:41:58.308657000 +0100
@@ -983,8 +983,15 @@
      return;
   tArea *Areas = Page->GetAreas();
   int NumAreas = Page->regions.Count();
-  int Bpp = 8;
+  //int Bpp = 8;
   bool Reduced = false;
+  for (int i = 0; i < NumAreas; i++) {
+    if (Areas[i].bpp > 2) {
+      Areas[i].bpp = 2;
+      Reduced = true;
+    }
+  }
+  /*
   while (osd->CanHandleAreas(Areas, NumAreas) != oeOk) {
         int HalfBpp = Bpp / 2;
         if (HalfBpp >= 2) {
@@ -999,6 +1006,7 @@
         else
            return; // unable to draw bitmaps
         }
+  */      
   if (Reduced) {
      for (int i = 0; i < NumAreas; i++) {
          cSubtitleRegion *sr = Page->regions.Get(i);
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin