changeset 10729:07870312c054

while we are at it: geometry support for xmga
author attila
date Sun, 31 Aug 2003 12:57:27 +0000
parents 713a1ff7046e
children 67449e5936f3
files DOCS/en/mplayer.1 libvo/vo_xmga.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/en/mplayer.1	Sun Aug 31 12:33:49 2003 +0000
+++ b/DOCS/en/mplayer.1	Sun Aug 31 12:57:27 2003 +0000
@@ -1658,7 +1658,8 @@
 option.
 The values given must be integers.
 
-Note: This option is only supported by vo x11, xv, xvidix and tdfxfb.
+Note: This option is only supported by vo x11, xmga, xv, xvmc, 
+xvidix and tdfxfb.
 
 .I EXAMPLE:
 .PD 0
--- a/libvo/vo_xmga.c	Sun Aug 31 12:33:49 2003 +0000
+++ b/libvo/vo_xmga.c	Sun Aug 31 12:57:27 2003 +0000
@@ -125,6 +125,7 @@
 
  vo_dx=( vo_screenwidth - d_width ) / 2;
  vo_dy=( vo_screenheight - d_height ) / 2;
+ geometry(&vo_dx, &vo_dy, &d_width, &d_height, vo_screenwidth, vo_screenheight);
  vo_dwidth=d_width; vo_dheight=d_height;
  vo_mouse_autohide=1;
 
@@ -139,7 +140,7 @@
 
   inited=1;
 
-  aspect(&vo_dwidth,&vo_dheight,A_NOZOOM);
+  aspect(&d_width,&d_height,A_NOZOOM);
 
 #ifdef HAVE_NEW_GUI
   if(use_gui)