diff options
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(); } |