Added image centering, now only screenblanking and hiding the cursor is missing.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2352 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
atmos4 2001-10-21 21:12:00 +00:00
parent 17a6767fbb
commit d87d77aadb
1 changed files with 4 additions and 0 deletions

View File

@ -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;