summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2009-08-19 17:08:08 +0000
committerphintuka <phintuka>2009-08-19 17:08:08 +0000
commit2d866e068ea0d3e11391440c89b79b4e2f66cc65 (patch)
tree1062cf12040a63fcec80d7fdcab4eb36b922d0a7
parent2d102a8300c41d023590b6ed0515a0acf9cbc3b5 (diff)
downloadxineliboutput-2d866e068ea0d3e11391440c89b79b4e2f66cc65.tar.gz
xineliboutput-2d866e068ea0d3e11391440c89b79b4e2f66cc65.tar.bz2
Use frontend window size for OSD
-rw-r--r--device.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/device.c b/device.c
index 7e5e258f..d317738f 100644
--- a/device.c
+++ b/device.c
@@ -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;