From 606dd634924f787f96d3b450ecc35420472f47a4 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sun, 1 May 2011 18:54:44 -0300 Subject: [PATCH] tstimc.c (tstimg): frame rate calculation didn't include the vsync pulse --- ubb-vga/tstimg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubb-vga/tstimg.c b/ubb-vga/tstimg.c index 5a7aa8c..4b9d47c 100644 --- a/ubb-vga/tstimg.c +++ b/ubb-vga/tstimg.c @@ -471,6 +471,6 @@ void tstimg(void **f, int xres, int yres) sprintf(buf, "LINE %5.2f KHZ", line_freq_hz/1000); text(f, xres, xres/8, yres/8+5*6, buf, 5, WHITE, 1); - sprintf(buf, "FRAME %5.2f HZ", line_freq_hz/(mode->yres+32+14)); + sprintf(buf, "FRAME %5.2f HZ", line_freq_hz/(mode->yres+2+32+14)); text(f, xres, xres/8, yres/8+5*12, buf, 5, WHITE, 1); }