mirror of https://github.com/odrling/Aegisub
Fix comment in vfr.cpp
Originally committed to SVN as r4672.
This commit is contained in:
parent
002aad0b29
commit
ab27440853
|
@ -242,9 +242,9 @@ static int round(double value) {
|
||||||
|
|
||||||
int Framerate::FrameAtTime(int ms, Time type) const {
|
int Framerate::FrameAtTime(int ms, Time type) const {
|
||||||
// With X ms per frame, this should return 0 for:
|
// With X ms per frame, this should return 0 for:
|
||||||
// EXACT: [0, X]
|
// EXACT: [0, X - 1]
|
||||||
// START: [-X, 0]
|
// START: [1 - X , 0]
|
||||||
// END: [1, X + 1]
|
// END: [1, X]
|
||||||
|
|
||||||
// There are two properties we take advantage of here:
|
// There are two properties we take advantage of here:
|
||||||
// 1. START and END's ranges are adjacent, meaning doing the calculations
|
// 1. START and END's ranges are adjacent, meaning doing the calculations
|
||||||
|
|
Loading…
Reference in New Issue