diff options
| -rw-r--r-- | device.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: device.c,v 1.89 2009-08-18 12:50:31 phintuka Exp $ + * $Id: device.c,v 1.90 2009-08-19 17:08:08 phintuka Exp $ * */ @@ -1547,6 +1547,11 @@ void cXinelibDevice::GetOsdSize(int &Width, int &Height, double &PixelAspect) Height = 1080; break; case OSD_SIZE_auto: + if (xc.osd_width_auto > 0 && xc.osd_height_auto > 0) { + Width = xc.osd_width_auto; + Height = xc.osd_height_auto; + break; + } case OSD_SIZE_custom: default: Width = xc.osd_width; |
