mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-05 00:36:57 +00:00
Implement Timestamp::operator== as equality in time.
svn-id: r47054
This commit is contained in:
parent
664ace90e7
commit
7591a09365
@ -66,11 +66,8 @@ Timestamp Timestamp::convertToFramerate(int newFramerate) const {
|
||||
}
|
||||
|
||||
bool Timestamp::operator==(const Timestamp &ts) const {
|
||||
// TODO: Alternatively, we could define equality to mean that
|
||||
// two timestamps describe the exacts same moment in time.
|
||||
return (_msecs == ts._msecs) &&
|
||||
(_numberOfFrames == ts._numberOfFrames) &&
|
||||
(_framerate == ts._framerate);
|
||||
// TODO: Improve this
|
||||
return (ts.msecs() == msecs()) && !frameDiff(ts);
|
||||
}
|
||||
|
||||
bool Timestamp::operator!=(const Timestamp &ts) const {
|
||||
|
Loading…
Reference in New Issue
Block a user