summaryrefslogtreecommitdiffstats
path: root/libvo/aspect.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/aspect.c')
-rw-r--r--libvo/aspect.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libvo/aspect.c b/libvo/aspect.c
index 05c729baf3..0ecf02e858 100644
--- a/libvo/aspect.c
+++ b/libvo/aspect.c
@@ -19,6 +19,7 @@ float vo_panscanrange = 1.0;
#include "video_out.h"
float monitor_aspect=4.0/3.0;
+float monitor_pixel_aspect=0;
extern float movie_aspect;
static struct {
@@ -53,6 +54,8 @@ void aspect_save_screenres(int scrw, int scrh){
#endif
aspdat.scrw = scrw;
aspdat.scrh = scrh;
+ if (monitor_pixel_aspect)
+ monitor_aspect = monitor_pixel_aspect * scrw / scrh;
}
/* aspect is called with the source resolution and the