diff --git a/src/i830_lvds.c b/src/i830_lvds.c index 064810f..8bcd916 100644 --- a/src/i830_lvds.c +++ b/src/i830_lvds.c @@ -747,6 +747,8 @@ i830_lvds_mode_fixup(xf86OutputPtr output, DisplayModePtr mode, if (panel_ratio > desired_ratio) { /* Pillar */ unsigned long scaled_width = (float)mode->HDisplay * vert_scale; + ErrorF("pillarbox scaling\n"); + horiz_ratio = vert_ratio; pfit_control |= VERT_AUTO_SCALE | VERT_INTERP_BILINEAR | HORIZ_INTERP_BILINEAR; @@ -770,6 +772,8 @@ i830_lvds_mode_fixup(xf86OutputPtr output, DisplayModePtr mode, unsigned long scaled_height = (float)mode->VDisplay * horiz_scale; + ErrorF("letterbox scaling\n"); + vert_ratio = horiz_ratio; pfit_control |= HORIZ_AUTO_SCALE | VERT_INTERP_BILINEAR | HORIZ_INTERP_BILINEAR; @@ -801,6 +805,8 @@ i830_lvds_mode_fixup(xf86OutputPtr output, DisplayModePtr mode, PFIT_VERT_SCALE_MASK) | ((horiz_bits << PFIT_HORIZ_SCALE_SHIFT) & PFIT_HORIZ_SCALE_MASK)); + ErrorF("pfit ratios: vertical 0x%08x, horizontal 0x%08x\n", + vert_bits, horiz_bits); } break; case FULL: