Skip to content

Commit 41cee80

Browse files
committed
Nudge the video left.
Makes my VGA to HDMI converter a bit happier. Need to check with an oscilloscope to see whether it's right or not.
1 parent bb74185 commit 41cee80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vga/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ impl ScanlineTimingBuffer {
685685
// Back porch. Adjusted by a few clocks to account for interrupt +
686686
// PIO SM start latency.
687687
Self::make_timing(
688-
(timings.2 * Self::CLOCKS_PER_PIXEL) - 5,
688+
(timings.2 * Self::CLOCKS_PER_PIXEL) - 10,
689689
hsync.disabled(),
690690
vsync.disabled(),
691691
RaiseIrq::None,
@@ -694,7 +694,7 @@ impl ScanlineTimingBuffer {
694694
// moving. Adjusted to compensate for changes made to previous
695695
// period to ensure scan-line remains at correct length.
696696
Self::make_timing(
697-
(timings.3 * Self::CLOCKS_PER_PIXEL) + 5,
697+
(timings.3 * Self::CLOCKS_PER_PIXEL) + 10,
698698
hsync.disabled(),
699699
vsync.disabled(),
700700
RaiseIrq::Irq0,

0 commit comments

Comments
 (0)