1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-19 06:56:16 +02:00

tstimc.c (tstimg): frame rate calculation didn't include the vsync pulse

This commit is contained in:
Werner Almesberger 2011-05-01 18:54:44 -03:00
parent 934a89bfa5
commit 606dd63492

View File

@ -471,6 +471,6 @@ void tstimg(void **f, int xres, int yres)
sprintf(buf, "LINE %5.2f KHZ", line_freq_hz/1000); sprintf(buf, "LINE %5.2f KHZ", line_freq_hz/1000);
text(f, xres, xres/8, yres/8+5*6, buf, 5, WHITE, 1); 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); text(f, xres, xres/8, yres/8+5*12, buf, 5, WHITE, 1);
} }