Panel fitting: fix letterbox modes

In full_aspect mode, we try to preserve the aspect ratio by adding
either top & bottom or left & right borders.  In the letterbox case (top
& bottom borders) we were miscalculating the top border which led to
programming a bad mode.  Fix the calculation and bug #15559.
This commit is contained in:
Jesse Barnes 2008-05-12 10:58:24 -07:00
parent f280c50dd5
commit 5103e5a39a
1 changed files with 1 additions and 1 deletions

View File

@ -671,7 +671,7 @@ i830_lvds_mode_fixup(xf86OutputPtr output, DisplayModePtr mode,
/* Letterbox will have top/bottom borders */
top_border = (dev_priv->panel_fixed_mode->VDisplay -
mode->VDisplay) / 2;
scaled_height) / 2;
bottom_border = top_border;
if (mode->VDisplay & 1)
bottom_border++;