diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2010-01-17 13:48:44 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2010-01-17 13:48:44 +0100 |
commit | 40bb2f21e08b8c5c4b9e5afde110825c7e3a354b (patch) | |
tree | 6a66c7720138baa8853ca03fda54f450c11616f8 /dvbspu.c | |
parent | 27939266f19e16676ab1c80a5a4ecad72e852f12 (diff) | |
download | vdr-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |