[mythtv] Ticket #667: Fix OSD font width and height for non-4:3 display, letterbox modes

Daniel Kristjansson danielk at cuymedia.net
Tue Aug 21 16:57:26 UTC 2007


On Tue, 2007-08-21 at 13:06 +0100, Simon Kenyon wrote:
> MythTV wrote:
> > #667: Fix OSD font width and height for non-4:3 display, letterbox modes
> > ------------------------------+---------------------------------------------
> >  Reporter:  gtgj at pacbell.net  |        Owner:  danielk 
> >      Type:  defect            |       Status:  reopened
> >  Priority:  minor             |    Milestone:  0.19    
> > Component:  mythtv            |      Version:  head    
> >  Severity:  medium            |   Resolution:          
> >   Mlocked:  0                 |  
> > ------------------------------+---------------------------------------------
> >
> > Comment(by Simon Kenyon <simon at koala.ie>):
> >
> >  i had to cut down the sizes so they would fit. also note that the file
> >  names were munged.
> >
> >   
> i note in the log the line:
> 
> 2007-08-15 23:24:38.368 Display Rect  left: 0, top: 0, width: 1024, 
> height: 576, aspect: 1.67136
> 
> my maths suggest that that should be 1.777777 (ie. 16:9)
> the windows is sized to *be* 16:9

1.77777 is the pixel ratio of the window, the display aspect ratio
takes into account the dimensions of the pixels themselves to give
the physical aspect ratio. If you are not using Xinerama this comes
from the X11 functions DisplayWidthMM() and DisplayHeightMM(). Your
aspect ratio corresponds to a display window of 35.6 cm by 21.3 cm
on a display with a total size of 66.8 cm by 42.3 cm. So your display
has an aspect ratio of 1.5792 or 25:16 and your window has an aspect
ratio of 1.67136 or 15:9. Are you using some funky mode-lines? A
display with 1920x1143 pixels is unorthodox.

-- Daniel



More information about the mythtv-dev mailing list