summaryrefslogtreecommitdiff
path: root/dvbspu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2010-01-17 13:48:44 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2010-01-17 13:48:44 +0100
commit40bb2f21e08b8c5c4b9e5afde110825c7e3a354b (patch)
tree6a66c7720138baa8853ca03fda54f450c11616f8 /dvbspu.c
parent27939266f19e16676ab1c80a5a4ecad72e852f12 (diff)
downloadvdr-40bb2f21e08b8c5c4b9e5afde110825c7e3a354b.tar.gz
vdr-40bb2f21e08b8c5c4b9e5afde110825c7e3a354b.tar.bz2
cPalette::ClosestColor() now treats fully transparent colors as "equal"; improved cDvbSpuBitmap::getMinBpp()
Diffstat (limited to 'dvbspu.c')
-rw-r--r--dvbspu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dvbspu.c b/dvbspu.c
index 488bd89f..951e2f8c 100644
--- a/dvbspu.c
+++ b/dvbspu.c
@@ -8,7 +8,7 @@
*
* parts of this file are derived from the OMS program.
*
- * $Id: dvbspu.c 2.7 2009/12/26 15:51:15 kls Exp $
+ * $Id: dvbspu.c 2.8 2010/01/17 13:43:27 kls Exp $
*/
#include "dvbspu.h"
@@ -347,7 +347,7 @@ int cDvbSpuBitmap::getMinBpp(const aDvbSpuPalDescr paldescr)
col++;
}
}
- return col > 2 ? 4 : 2;
+ return col > 2 ? 2 : 1;
}
int cDvbSpuDecoder::CalcAreaBpp(cBitmap *fgbmp, cBitmap *bgbmp)