changeset 8115:2406eb28a601

10L found by Mark <CompGuy284 at attbi dot com>
author albeu
date Tue, 05 Nov 2002 22:45:53 +0000
parents ba66375adb6f
children 3757669b825b
files libvo/vo_dxr2.c
diffstat 1 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_dxr2.c	Tue Nov 05 19:03:52 2002 +0000
+++ b/libvo/vo_dxr2.c	Tue Nov 05 22:45:53 2002 +0000
@@ -540,6 +540,7 @@
   int p_len = strlen(p), name_len = strlen(name);
   char cache_path[p_len + name_len + 2];
   int ret;
+  int xc,yc,wc,hc;
   FILE* fd;
 
   sprintf(cache_path,"%s/%s",p,name);
@@ -562,12 +563,16 @@
 	       &vga->hOffset,
 	       &vga->vOffset,
 	       &vga->ratio,
-	       &olx_cor,
-	       &oly_cor,
-	       &olw_cor,
-	       &olh_cor);
+	       &xc,
+	       &yc,
+	       &wc,
+	       &hc);
 
   fclose(fd);
+  if(ret > 11 && !olx_cor) olx_cor = xc;
+  if(ret > 12 && !oly_cor) oly_cor = yc;
+  if(ret > 13 && !olw_cor) olw_cor = wc;
+  if(ret > 14 && !olh_cor) olh_cor = hc;    
   return ret >= 11 ? 1 : 0;
 }