diff options
Diffstat (limited to 'dxr3osd.c')
-rw-r--r-- | dxr3osd.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -25,6 +25,7 @@ #include "dxr3osd.h" #include "dxr3interface_spu_encoder.h" +#include "scaler.h" // ================================== // ! create osd at (Left, Top, Level) @@ -229,6 +230,19 @@ void cDxr3Osd::Flush() bmap = mergedBitmap; } + uint32_t horizontal, vertical; + cDxr3Interface::instance()->dimension(horizontal, vertical); + + // check if we need to scale the osd + if (horizontal < 720 || vertical < 576) { + + // TODO + dsyslog("SCALE ME"); + } + + if (!bmap) + return; + // encode bitmap if (bmap->Dirty(x1, y1, x2, y2)) { cSpuEncoder::instance()->encode(bmap, Top(), Left()); |