Skip to content

Commit 0d30419

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 0c21aaf commit 0d30419

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
@@ -682,7 +682,7 @@ impl ScanlineTimingBuffer {
682682
// Back porch. Adjusted by a few clocks to account for interrupt +
683683
// PIO SM start latency.
684684
Self::make_timing(
685-
(timings.2 * Self::CLOCKS_PER_PIXEL) - 5,
685+
(timings.2 * Self::CLOCKS_PER_PIXEL) - 10,
686686
hsync.disabled(),
687687
vsync.disabled(),
688688
RaiseIrq::None,
@@ -691,7 +691,7 @@ impl ScanlineTimingBuffer {
691691
// moving. Adjusted to compensate for changes made to previous
692692
// period to ensure scan-line remains at correct length.
693693
Self::make_timing(
694-
(timings.3 * Self::CLOCKS_PER_PIXEL) + 5,
694+
(timings.3 * Self::CLOCKS_PER_PIXEL) + 10,
695695
hsync.disabled(),
696696
vsync.disabled(),
697697
RaiseIrq::Irq0,

0 commit comments

Comments
 (0)