Skip to content

Commit 810f915

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 4de6df9 commit 810f915

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
@@ -818,7 +818,7 @@ impl ScanlineTimingBuffer {
818818
// Back porch. Adjusted by a few clocks to account for interrupt +
819819
// PIO SM start latency.
820820
Self::make_timing(
821-
(timings.2 * Self::CLOCKS_PER_PIXEL) - 5,
821+
(timings.2 * Self::CLOCKS_PER_PIXEL) - 10,
822822
hsync.disabled(),
823823
vsync.disabled(),
824824
RaiseIrq::None,
@@ -827,7 +827,7 @@ impl ScanlineTimingBuffer {
827827
// moving. Adjusted to compensate for changes made to previous
828828
// period to ensure scan-line remains at correct length.
829829
Self::make_timing(
830-
(timings.3 * Self::CLOCKS_PER_PIXEL) + 5,
830+
(timings.3 * Self::CLOCKS_PER_PIXEL) + 10,
831831
hsync.disabled(),
832832
vsync.disabled(),
833833
RaiseIrq::Irq0,

0 commit comments

Comments
 (0)