diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2015-01-04 15:53:47 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2015-01-04 15:53:47 +0100 |
commit | fc0094231d3f803869b8a03f449092b9464b2c21 (patch) | |
tree | 3c9acf86af44d5fcb2cb4eb515344b1d3e8d6363 /dvbsubtitle.c | |
parent | aacdeba5d9591a8afc5f2e0e008a3b3b9dfc3bba (diff) | |
download | vdr-fc0094231d3f803869b8a03f449092b9464b2c21.tar.gz vdr-fc0094231d3f803869b8a03f449092b9464b2c21.tar.bz2 |
Added cOsd::DrawScaledBitmap()
Diffstat (limited to 'dvbsubtitle.c')
-rw-r--r-- | dvbsubtitle.c | 8 |
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(); } |