summaryrefslogtreecommitdiff
path: root/dxr3osd.c
diff options
context:
space:
mode:
Diffstat (limited to 'dxr3osd.c')
-rw-r--r--dxr3osd.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/dxr3osd.c b/dxr3osd.c
index 9a78b1c..10b4024 100644
--- a/dxr3osd.c
+++ b/dxr3osd.c
@@ -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());