From c6e66e0787f62fdf74dde43dcc88818f80b7334e Mon Sep 17 00:00:00 2001 From: Johns Date: Wed, 18 Jan 2012 15:15:37 +0100 Subject: 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, ... --- softhddev.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'softhddev.c') 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 } -- cgit v1.2.3