diff --git a/ubb-vga/ubb-vga.c b/ubb-vga/ubb-vga.c index 51b43e8..c768653 100644 --- a/ubb-vga/ubb-vga.c +++ b/ubb-vga/ubb-vga.c @@ -187,19 +187,18 @@ static void until(uint16_t cycles) static const struct mode { const char *name; int xres, yres; - int line_words; /* xres/8 */ int clkdiv; /* pixel clock = 336 MHz/(clkdiv+1) */ int line_cycles; /* 31.77 us for official VGA */ int hsync_end; /* 0.79+3.77 us for official VGA */ } mode_db[] = { - { "640x480", 640, 480, 640/8, 11, US(29.7), US(0.79+3.77-0.3) }, - { "800x600", 800, 600, 800/8, 8, US(28.7), US(2.0+3.3+0.3) }, + { "640x480", 640, 480, 11, US(29.7), US(0.79+3.77-0.3) }, + { "800x600", 800, 600, 8, US(28.7), US(2.0+3.3+0.3) }, /* the next one may work after adjusting the timing in "frame" */ - { "800x600", 800, 600, 800/8, 8, US(28.2), US(2.0+3.3+0.3-0.3) }, + { "800x600", 800, 600, 8, US(28.2), US(2.0+3.3+0.3-0.3) }, /* the 1024x768 below is not great but has good parameter tolerance */ - { "1024x768", 1024, 768, 1024/8, 8, US(36.0), US(2.0+3.3) }, + { "1024x768", 1024, 768, 8, US(36.0), US(2.0+3.3) }, /* illustrate underruns */ - { "1024x768ur", 1024, 768, 1024/8, 7, US(33.5), US(0.4+2.1+0.5) }, + { "1024x768ur", 1024, 768, 7, US(33.5), US(0.4+2.1+0.5) }, { NULL } }, *mode = mode_db;