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:
parent
f280c50dd5
commit
5103e5a39a
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Reference in New Issue