changeset 25782:aac51b420d89

-panscan should also work for right and left borders
author reimar
date Sat, 19 Jan 2008 18:12:10 +0000
parents e257ba82b119
children 8d46379da327
files libvo/aspect.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/aspect.c	Sat Jan 19 18:10:06 2008 +0000
+++ b/libvo/aspect.c	Sat Jan 19 18:12:10 2008 +0000
@@ -134,6 +134,8 @@
  if (vo_panscanrange > 0) {
    aspect(&fwidth,&fheight,A_ZOOM);
    vo_panscan_area = (aspdat.scrh-fheight);
+   if (!vo_panscan_area)
+     vo_panscan_area = aspdat.scrw - fwidth;
    vo_panscan_area *= vo_panscanrange;
  } else
    vo_panscan_area = -vo_panscanrange * aspdat.scrh;