mirror of
https://github.com/mpv-player/mpv
synced 2024-12-19 05:15:12 +00:00
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:
parent
17a6767fbb
commit
d87d77aadb
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user