# HG changeset patch # User atmos4 # Date 1003698720 0 # Node ID c53969b13353babe5efe28f523f7003634bf7d21 # Parent d3a67a417352297b8ad64d786e635ef87ea69c1b Added image centering, now only screenblanking and hiding the cursor is missing. diff -r d3a67a417352 -r c53969b13353 libvo/vo_mga.c --- a/libvo/vo_mga.c Sun Oct 21 20:03:00 2001 +0000 +++ b/libvo/vo_mga.c Sun Oct 21 21:12:00 2001 +0000 @@ -108,6 +108,10 @@ 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;