[mythtv-commits] Ticket #4162: mythgallery aspect ratio patch

MythTV mythtv at cvs.mythtv.org
Sun Nov 25 16:23:59 UTC 2007


#4162: mythgallery aspect ratio patch
-------------------------------+--------------------------------------------
 Reporter:  kielogl at yahoo.com  |        Owner:  danielk
     Type:  patch              |       Status:  closed 
 Priority:  minor              |    Milestone:  0.21   
Component:  mythgallery        |      Version:  0.20.2 
 Severity:  medium             |   Resolution:  fixed  
  Mlocked:  0                  |  
-------------------------------+--------------------------------------------
Changes (by danielk):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 (In [14950]) Fixes #4162. Adjusts images in mythgallary to the correct
 aspect ratio.

 This adds a function to util.h MythGetPixelAspectRatio() which returns the
 aspect ratio of the default screen's pixel aspect ratio and uses this to
 adjust the display of the image. This will not work properly if there are
 multiple screens with different pixel aspect ratios, and it only works on
 X11 platforms (but this would not be too difficult to port).

 To support the util.h function three functions have been added to
 util-x11.h, MythXGetDisplaySize() which determines a screen's size in
 pixels, MythXGetDisplayDimensions(), which returns a sreen's size in
 millimeters, and MythXGetPixelAspectRatio() which determines a screen's
 pixel aspect ratio using those two functions. These functions accept a
 Display* and a screen number, but when called without them use
 MythXOpenDisplay() to open the correct display and use DefaultScreen() to
 select the screen number.DisplayResX and videoout_xv.cpp now use these
 functions to query the screen rather than duplicating the code.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/4162#comment:2>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list