diff options
author | phintuka <phintuka> | 2006-10-29 19:43:06 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2006-10-29 19:43:06 +0000 |
commit | 32415d5a32cc8213ad4eabdfa4ae0759ae57c914 (patch) | |
tree | 73ecf2b5affaa78e075cf76005b7de635b2f475e | |
parent | a512830e90b6b5094be534e841888ccaf42b77dc (diff) | |
download | xineliboutput-32415d5a32cc8213ad4eabdfa4ae0759ae57c914.tar.gz xineliboutput-32415d5a32cc8213ad4eabdfa4ae0759ae57c914.tar.bz2 |
Test to support OSD sizes 720x576
-rw-r--r-- | osd.c | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: osd.c,v 1.5 2006-08-26 19:09:08 phintuka Exp $ + * $Id: osd.c,v 1.6 2006-10-29 19:43:06 phintuka Exp $ * */ @@ -181,7 +181,16 @@ eOsdError cXinelibOsd::SetAreas(const tArea *Areas, int NumAreas) eOsdError Result = cOsd::SetAreas(Areas, NumAreas); if(Result == oeOk) m_Shown = false; - + + if(Left() + Width() > 720 || Top() + Height() > 576) { + LOGDBG("Detected HD OSD, size > %dx%d, using setup values %dx%d", + Left() + Width(), Top() + Height(), + Setup.OSDWidth, Setup.OSDHeight); + CmdSize(m_Device, 0, Setup.OSDWidth, Setup.OSDHeight); + } else { + CmdSize(m_Device, 0, 720, 576); + } + return Result; } |