changeset 2351:c53969b13353

Added image centering, now only screenblanking and hiding the cursor is missing.
author atmos4
date Sun, 21 Oct 2001 21:12:00 +0000
parents d3a67a417352
children 3b22db95aaf6
files libvo/vo_mga.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;