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:
parent
934a89bfa5
commit
606dd63492
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user