diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2011-03-13 13:58:22 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2011-03-13 13:58:22 +0100 |
commit | 5f35ff690faf00932d5ab61b38aa7bbc1aca281f (patch) | |
tree | 933eaeb4e27c93ea43f85e2c71c9a618b77d3012 /dvbsubtitle.c | |
parent | 06a16e7fba544844a81eed011bd8b9b6fc92de7d (diff) | |
download | vdr-5f35ff690faf00932d5ab61b38aa7bbc1aca281f.tar.gz vdr-5f35ff690faf00932d5ab61b38aa7bbc1aca281f.tar.bz2 |
Fixed some direct comparisons of double values
Diffstat (limited to 'dvbsubtitle.c')
-rw-r--r-- | dvbsubtitle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dvbsubtitle.c b/dvbsubtitle.c index c1a0a0c2..ec36d589 100644 --- a/dvbsubtitle.c +++ b/dvbsubtitle.c @@ -7,7 +7,7 @@ * Original author: Marco Schlüßler <marco@lordzodiac.de> * With some input from the "subtitle plugin" by Pekka Virtanen <pekka.virtanen@sci.fi> * - * $Id: dvbsubtitle.c 2.11 2011/03/12 15:13:03 kls Exp $ + * $Id: dvbsubtitle.c 2.12 2011/03/13 13:54:05 kls Exp $ */ #include "dvbsubtitle.h" @@ -653,7 +653,7 @@ void cDvbSubtitleBitmaps::Draw(cOsd *Osd) if (Osd->SetAreas(areas, numAreas) == oeOk) { for (int i = 0; i < bitmaps.Size(); i++) { cBitmap *b = bitmaps[i]; - if (osdFactor != 1.0) + if (!DoubleEqual(osdFactor, 1.0)) b = b->Scale(osdFactor, osdFactor); Osd->DrawBitmap(int(round(b->X0() * osdFactor)), int(round(b->Y0() * osdFactor)), *b); if (b != bitmaps[i]) |