mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-19 06:56:16 +02:00
ubb-vga: make lines end in black (and not in overscan)
- ubb-vga.c (line): send a 0 word at the end of the line, to avoid overscan (we use PIO to synchronize with CPU timing) - ubb-vga.c (mode_db): updated line length of 640x480 resolutions for correct termination
This commit is contained in:
parent
0dbf29e599
commit
3ea6b9852e
@ -51,8 +51,8 @@ static int bad;
|
|||||||
static const struct mode mode_db[] = {
|
static const struct mode mode_db[] = {
|
||||||
/* name xres yres clkdiv vfront hsync hback htotal */
|
/* name xres yres clkdiv vfront hsync hback htotal */
|
||||||
/* vsync vback */
|
/* vsync vback */
|
||||||
{ "640x480/58", 640, 480, 12, 2, 10, 33, US(3.81), US(1.91), US(32.5) },
|
{ "640x480/58", 640, 480, 12, 2, 10, 33, US(3.81), US(1.91), US(32.7) },
|
||||||
{ "640x480/70", 640, 480, 9, 2, 8, 29, US(1.90), US(2.06), US(27.5) },
|
{ "640x480/70", 640, 480, 9, 2, 8, 29, US(1.90), US(2.06), US(24.8) },
|
||||||
|
|
||||||
{ "800x600/54", 800, 600, 8, 2, 32, 14, US(4.81), US(0.79), US(28.7) },
|
{ "800x600/54", 800, 600, 8, 2, 32, 14, US(4.81), US(0.79), US(28.7) },
|
||||||
{ "800x600/56", 800, 600, 8, 2, 1, 22, US(2.00), US(3.56), US(28.5) },
|
{ "800x600/56", 800, 600, 8, 2, 1, 22, US(2.00), US(3.56), US(28.5) },
|
||||||
@ -324,6 +324,7 @@ static void line(unsigned long line)
|
|||||||
PDFUNC = CMD;
|
PDFUNC = CMD;
|
||||||
|
|
||||||
until(mode->line_cycles);
|
until(mode->line_cycles);
|
||||||
|
MSC_TXFIFO = 0;
|
||||||
if (MSC_STAT & 3)
|
if (MSC_STAT & 3)
|
||||||
bad++;
|
bad++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user