summaryrefslogtreecommitdiffstats
path: root/libvo/vo_mga.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_mga.c')
-rw-r--r--libvo/vo_mga.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvo/vo_mga.c b/libvo/vo_mga.c
index e3cb652d90..a278ae7c08 100644
--- a/libvo/vo_mga.c
+++ b/libvo/vo_mga.c
@@ -108,6 +108,10 @@ char *devname=vo_subdevice?vo_subdevice:"/dev/mga_vid";
mga_vid_config.dest_height= d_height;
mga_vid_config.x_org= 0; // (720-mga_vid_config.dest_width)/2;
mga_vid_config.y_org= 0; // (576-mga_vid_config.dest_height)/2;
+ if(vo_screenwidth && vo_screenheight){
+ mga_vid_config.x_org=(vo_screenwidth-d_width)/2;
+ mga_vid_config.y_org=(vo_screenheight-d_height)/2;
+ }
mga_vid_config.version=MGA_VID_VERSION;