[MPlayer-users] [BUG] Monitor aspect is fixed, should be variable
Hans Korneder
korneder at yahoo.com
Fri Aug 29 12:17:09 CEST 2003
In file libvo/aspect.c the monitor aspect is fixed to
float monitor_aspect=4.0/3.0;
This causes distorted images on other monitors
(like the 16:9 I'm currently using).
A way to correct this is using the X11-macros
DisplayWidthMM(mDisplay,mScreen)
resp.
DisplayHeightMM(mDisplay,mScreen)
I did this in the beginning of the
static uint32_t config(...)
in libvo/vo_xv.c and libvo/vo_x11.c
by calling a (new) function
m_a = ... DisplayWidthMM(...)/DisplayHeightMM(...);
aspect_save_monitor(m_a);
which I defined in aspect.c as follows:
void aspect_save_monitor(double m_a){
monitor_aspect = m_a;
}
Currently I'm using the source from CVS dated
20030827.
I think that this (or a similar) fix should be
included in future releases.
Keep on hacking!
Hans
hans AT korneder DOT de
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
More information about the MPlayer-users
mailing list