diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-10-22 07:51:08 +0200 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-10-22 07:51:08 +0200 |
commit | 7b7616d8f988c6de3a6651e8357cd5de52808746 (patch) | |
tree | 7a7750bba50bcbf6ac76ee679c627664d701be14 | |
parent | 98bc88108cf229baf010d23f2c380f0fbd4146f3 (diff) | |
download | vdr-plugin-dxr3-7b7616d8f988c6de3a6651e8357cd5de52808746.tar.gz vdr-plugin-dxr3-7b7616d8f988c6de3a6651e8357cd5de52808746.tar.bz2 |
simplify bitmap cleaning
-rw-r--r-- | dxr3osd.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -197,6 +197,9 @@ void cDxr3Osd::Flush() return; } + // mark bitmap as clean + bmap->Clean(); + uint32_t horizontal, vertical; cDxr3Interface::instance()->dimension(horizontal, vertical); @@ -226,10 +229,6 @@ void cDxr3Osd::Flush() // scale and set used colors cBitmap *scaled = cScaler::scaleBitmap(bmap, width, height); scaled->Replace(*Palette); - - // mark source bitmap as clean - bmap->Clean(); - scaling = true; bmap = scaled; } @@ -237,7 +236,6 @@ void cDxr3Osd::Flush() // encode bitmap cSpuEncoder::instance()->encode(bmap, top, left); shown = true; - bmap->Clean(); // check if we need to free the bitmap allocated by the method // cScaler::scaleBitmap |