From 40bb2f21e08b8c5c4b9e5afde110825c7e3a354b Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 17 Jan 2010 13:48:44 +0100 Subject: cPalette::ClosestColor() now treats fully transparent colors as "equal"; improved cDvbSpuBitmap::getMinBpp() --- dvbspu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dvbspu.c') 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) -- cgit v1.2.3