diff options
author | phintuka <phintuka> | 2006-09-23 07:52:59 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2006-09-23 07:52:59 +0000 |
commit | 4feaa47365881c233b7d3f641786e070894d3a39 (patch) | |
tree | 55b6627e4ec1a5690ca7a6cf3810b2b56cae2ef8 | |
parent | 2a865acbe4fcca23452e86f2a5a5efcef432eb31 (diff) | |
download | xineliboutput-4feaa47365881c233b7d3f641786e070894d3a39.tar.gz xineliboutput-4feaa47365881c233b7d3f641786e070894d3a39.tar.bz2 |
Fix unscaled OSD scaling when low-resolution video or different aspect ratio
-rw-r--r-- | xine_input_vdr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xine_input_vdr.c b/xine_input_vdr.c index 8877e521..78d7750d 100644 --- a/xine_input_vdr.c +++ b/xine_input_vdr.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_input_vdr.c,v 1.54 2006-09-23 06:39:50 phintuka Exp $ + * $Id: xine_input_vdr.c,v 1.55 2006-09-23 07:52:59 phintuka Exp $ * */ @@ -1888,7 +1888,7 @@ static int exec_osd_command(vdr_input_plugin_t *this, osd_command_t *cmd) if(unscaled_supported && this->unscaled_osd_lowresvideo) use_unscaled = 1; - if(this->rescale_osd) { + if(!use_unscaled && this->rescale_osd) { if(!this->rescale_osd_downscale) { if(width_diff<0) { @@ -1931,6 +1931,7 @@ static int exec_osd_command(vdr_input_plugin_t *this, osd_command_t *cmd) if(win_width > 240 && win_height > 196) { if(this->rescale_osd) { + /*LOGMSG("Scaling unscaled OSD to %dx%d", win_width, win_height);*/ if(win_width != this->vdr_osd_width || win_height != this->vdr_osd_height) { int new_w = (0x100*cmd->w * win_width / this->vdr_osd_width)>>8; |