Thanks Roo, Nigel,<br><br>Have create  Ticket #4162: mythgallery aspect ratio patch (along with an updated patch), as suggest.<br><br>Cheers, Mark.<br><b><i>Nigel Pearson &lt;nigel@ind.tansu.com.au&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> &gt; +    // calculate display pixel aspect ratio<br>&gt; +    Display  *display = XOpenDisplay(NULL);<br>&gt; +    int scr = DefaultScreen(display);<br>&gt; +    double pixelaspect =<br>&gt; +       ((double)DisplayWidthMM(display,scr) / (double)screenwidth) /<br>&gt; +       ((double)DisplayHeightMM(display,scr) / (double)screenheight);<br>&gt; +<br>&gt; +    // calculate image aspect ratio<br>&gt; +    double imageaspect =<br>&gt; +       (double)m_image.width() / (double)m_image.height();<br>&gt; +<br>&gt; +    QImage img = m_image.smoothScale(<br>&gt; +        (int) (screenheight * imageaspect / pixelaspect * m_zoom),<br>&gt; +        (int)
 (screenheight * m_zoom),<br>&gt; +        QImage::ScaleFree);<br><br><br>While this does work for X environemnts,<br>it will not help on OS X, or Windows.<br><br><br>An #ifdef ENABLE_X11 will suffice for now,<br>but in the long run, some of the video output<br>code probably needs to be abstracted into<br>libmyth?<br><br>--<br>Nigel Pearson, nigel@ind.tansu.com.au|"Look at this!<br>Telstra Net. Eng., Sydney, Australia | Do you think I put this in<br>Office: 9202 3900    Fax:  9261 3912 |  to get better reception?"<br>Mobile: 0408 664435  Home: 9792 6998 | Batty - Fern Gully<br>_______________________________________________<br>mythtv-dev mailing list<br>mythtv-dev@mythtv.org<br>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev<br></blockquote><br><p>&#32;__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com