diff options
author | Johns <johns98@gmx.net> | 2012-01-18 15:15:37 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-01-18 15:15:37 +0100 |
commit | c6e66e0787f62fdf74dde43dcc88818f80b7334e (patch) | |
tree | 20cd574eb4c2aa096a9788513b63fe41cdd3b45e /softhddev.c | |
parent | 19d4eeed8268c88feff69f06218a11e68e548246 (diff) | |
download | vdr-plugin-softhddevice-c6e66e0787f62fdf74dde43dcc88818f80b7334e.tar.gz vdr-plugin-softhddevice-c6e66e0787f62fdf74dde43dcc88818f80b7334e.tar.bz2 |
OSD improvements:
Use OSD size equal to video window.
Update only dirty area(s) of OSD.
Show/mix only used area of OSD.
Fix bug: vpdau use previous resolution for deint, ...
Diffstat (limited to 'softhddev.c')
-rw-r--r-- | softhddev.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/softhddev.c b/softhddev.c index 6f65ab3..33e5fae 100644 --- a/softhddev.c +++ b/softhddev.c @@ -913,22 +913,19 @@ int Flush(int timeout) void GetOsdSize(int *width, int *height, double *aspect) { #ifdef DEBUG - static char done; + static int done_width; + static int done_height; #endif - // FIXME: should be configured! - *width = 1920; - *height = 1080; - //*width = 768; - //*height = 576; - + VideoGetOsdSize(width, height); *aspect = 16.0 / 9.0 / (double)*width * (double)*height; #ifdef DEBUG - if (!done) { + if (done_width != *width || done_height != *height) { Debug(3, "[softhddev]%s: %dx%d %g\n", __FUNCTION__, *width, *height, *aspect); - done = 1; + done_width = *width; + done_height = *height; } #endif } |