summaryrefslogtreecommitdiff
path: root/dvbsubtitle.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-01-04 15:53:47 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-01-04 15:53:47 +0100
commitfc0094231d3f803869b8a03f449092b9464b2c21 (patch)
tree3c9acf86af44d5fcb2cb4eb515344b1d3e8d6363 /dvbsubtitle.c
parentaacdeba5d9591a8afc5f2e0e008a3b3b9dfc3bba (diff)
downloadvdr-fc0094231d3f803869b8a03f449092b9464b2c21.tar.gz
vdr-fc0094231d3f803869b8a03f449092b9464b2c21.tar.bz2
Added cOsd::DrawScaledBitmap()
Diffstat (limited to 'dvbsubtitle.c')
-rw-r--r--dvbsubtitle.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/dvbsubtitle.c b/dvbsubtitle.c
index 88c594c2..92c2eb6c 100644
--- a/dvbsubtitle.c
+++ b/dvbsubtitle.c
@@ -7,7 +7,7 @@
* Original author: Marco Schluessler <marco@lordzodiac.de>
* With some input from the "subtitles plugin" by Pekka Virtanen <pekka.virtanen@sci.fi>
*
- * $Id: dvbsubtitle.c 3.5 2014/02/08 12:29:13 kls Exp $
+ * $Id: dvbsubtitle.c 3.6 2015/01/04 15:46:39 kls Exp $
*/
#include "dvbsubtitle.h"
@@ -1077,11 +1077,7 @@ void cDvbSubtitleBitmaps::Draw(cOsd *Osd)
if (State() == 0 || Osd->SetAreas(areas, numAreas) == oeOk) {
for (int i = 0; i < bitmaps.Size(); i++) {
cBitmap *b = bitmaps[i];
- if (Scale)
- b = b->Scaled(osdFactorX, osdFactorY, AntiAlias);
- Osd->DrawBitmap(int(round(b->X0() * osdFactorX)), int(round(b->Y0() * osdFactorY)), *b);
- if (b != bitmaps[i])
- delete b;
+ Osd->DrawScaledBitmap(int(round(b->X0() * osdFactorX)), int(round(b->Y0() * osdFactorY)), *b, osdFactorX, osdFactorY, AntiAlias);
}
Osd->Flush();
}