diff options
| author | phintuka <phintuka> | 2009-08-19 17:08:08 +0000 |
|---|---|---|
| committer | phintuka <phintuka> | 2009-08-19 17:08:08 +0000 |
| commit | 2d866e068ea0d3e11391440c89b79b4e2f66cc65 (patch) | |
| tree | 1062cf12040a63fcec80d7fdcab4eb36b922d0a7 | |
| parent | 2d102a8300c41d023590b6ed0515a0acf9cbc3b5 (diff) | |
| download | xineliboutput-2d866e068ea0d3e11391440c89b79b4e2f66cc65.tar.gz xineliboutput-2d866e068ea0d3e11391440c89b79b4e2f66cc65.tar.bz2 | |
Use frontend window size for OSD
| -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; |
