summaryrefslogtreecommitdiff
path: root/osd.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-04-17 14:40:58 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2011-04-17 14:40:58 +0200
commit914b04c1d23fe94c22de79cc34c62b7a26bac22c (patch)
tree207c8609c71d1a1deef26227bcbf997aeecdbbde /osd.h
parentc670c0645f6445eb3b8c65abc601a83c35228411 (diff)
downloadvdr-914b04c1d23fe94c22de79cc34c62b7a26bac22c.tar.gz
vdr-914b04c1d23fe94c22de79cc34c62b7a26bac22c.tar.bz2
Fixed handling the bitmap color depth for scaled subtitles1.7.18
Diffstat (limited to 'osd.h')
-rw-r--r--osd.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/osd.h b/osd.h
index 5196e2cf..b56853a3 100644
--- a/osd.h
+++ b/osd.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osd.h 2.12 2011/03/27 11:51:48 kls Exp $
+ * $Id: osd.h 2.13 2011/04/17 14:24:32 kls Exp $
*/
#ifndef __OSD_H
@@ -273,8 +273,11 @@ public:
///< the 2^NewBpp most frequently used colors as defined in the current palette.
///< If NewBpp is not smaller than the bitmap's current color depth,
///< or if it is not one of 4bpp or 2bpp, nothing happens.
- cBitmap *Scaled(double FactorX, double FactorY);
+ cBitmap *Scaled(double FactorX, double FactorY, bool AntiAlias = false);
///< Creates a copy of this bitmap, scaled by the given factors.
+ ///< If AntiAlias is true and either of the factors is greater than 1.0,
+ ///< anti-aliasing is applied. This will also set the color depth of the
+ ///< returned bitmap to 8bpp.
///< The caller must delete the returned bitmap once it is no longer used.
};