[PATCH 22/30] xfree86/modes: Stop setting VBackPorch for nothing.

Cyril Brulebois kibi at debian.org
Fri May 20 08:35:32 PDT 2011


Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
 hw/xfree86/modes/xf86cvt.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/hw/xfree86/modes/xf86cvt.c b/hw/xfree86/modes/xf86cvt.c
index 244f3b9..88b52ca 100644
--- a/hw/xfree86/modes/xf86cvt.c
+++ b/hw/xfree86/modes/xf86cvt.c
@@ -160,7 +160,7 @@ xf86CVTMode(int HDisplay, int VDisplay, float VRefresh, Bool Reduced,
 #define CVT_HSYNC_PERCENTAGE 8
 
         float  HBlankPercentage;
-        int  VSyncAndBackPorch, VBackPorch;
+        int  VSyncAndBackPorch;
         int  HBlank;
 
         /* 8. Estimated Horizontal period */
@@ -173,8 +173,7 @@ xf86CVTMode(int HDisplay, int VDisplay, float VRefresh, Bool Reduced,
         else
             VSyncAndBackPorch = (int)(CVT_MIN_VSYNC_BP / HPeriod) + 1;
 
-        /* 10. Find number of lines in back porch */
-        VBackPorch = VSyncAndBackPorch - VSync;
+        /* 10. Find number of lines in back porch [useless, removed] */
 
         /* 11. Find total number of lines in vertical field */
         Mode->VTotal = VDisplayRnd + 2 * VMargin + VSyncAndBackPorch + Interlace
-- 
1.7.5.1



More information about the xorg-devel mailing list