Line ticker bug fix
This commit is contained in:
parent
93ac764e01
commit
5903463734
|
@ -627,9 +627,9 @@ static size_t get_line_display_ticks(size_t line_width)
|
||||||
/* Mean human reading speed for all western languages,
|
/* Mean human reading speed for all western languages,
|
||||||
* characters per minute */
|
* characters per minute */
|
||||||
float cpm = 1000.0f;
|
float cpm = 1000.0f;
|
||||||
/* Base time for which a line should be shown, in ms */
|
/* Base time for which a line should be shown, in us */
|
||||||
float line_duration = (line_width * 60.0f * 1000.0f) / cpm;
|
float line_duration = (line_width * 60.0f * 1000.0f * 1000.0f) / cpm;
|
||||||
/* Ticker updates (nominally) once every TICKER_SPEED ms
|
/* Ticker updates (nominally) once every TICKER_SPEED us
|
||||||
* > Return base number of ticks for which line should be shown */
|
* > Return base number of ticks for which line should be shown */
|
||||||
return (size_t)(line_duration / (float)TICKER_SPEED);
|
return (size_t)(line_duration / (float)TICKER_SPEED);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue