changeset 32692:4040f4df69f0

Fix name clash with aspect() function from aspect.h (makes vo_dxr2.c compile again).
author ranma
date Tue, 11 Jan 2011 00:07:52 +0000
parents 98ddd06f0e9b
children 2290be558d55
files libvo/vo_dxr2.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_dxr2.c	Mon Jan 10 22:58:10 2011 +0000
+++ b/libvo/vo_dxr2.c	Tue Jan 11 00:07:52 2011 +0000
@@ -56,7 +56,7 @@
 static int sub_x,sub_y,sub_w,sub_h;
 static int sub_x_off,sub_y_off;
 static int sub_config_count;
-static int aspect;
+static int dxr2_aspect;
 static int sub_vo_win = 0;
 
 static int use_ol = 1;
@@ -488,10 +488,10 @@
     int new_aspect = ((1<<16)*vo_dwidth + vo_dheight/2)/vo_dheight;
     sub_w = vo_dwidth;
     sub_h = vo_dheight;
-    if(new_aspect > aspect)
-      sub_w = (sub_h*aspect + (1<<15))>>16;
+    if(new_aspect > dxr2_aspect)
+      sub_w = (sub_h*dxr2_aspect + (1<<15))>>16;
     else
-      sub_h = ((sub_w<<16) + (aspect>>1)) /aspect;
+      sub_h = ((sub_w<<16) + (dxr2_aspect>>1)) /dxr2_aspect;
     sub_w += olw_cor;
     sub_h += olh_cor;
     sub_x_off = (vo_dwidth-sub_w) / 2;
@@ -699,7 +699,7 @@
 	sub_img[i+1] = ck_g;
 	sub_img[i+2] = ck_r;
       }
-      aspect = ((1<<16)*width + height/2)/height;
+      dxr2_aspect = ((1<<16)*width + height/2)/height;
       sub_w = sub_h = 0;
       dxr2_set_overlay_window();
       break;