movie dialog: fixed subsecond calculation; added subsecond rounding code; expanded the width of frameCount/rerecordCount display.
This commit is contained in:
parent
7c082ecaa3
commit
7bae874515
|
@ -125,9 +125,9 @@ void Describe(HWND hwndDlg)
|
|||
|
||||
u32 num_frames = md.records.size();
|
||||
|
||||
double tempCount = num_frames / (33513982.0/6/355/263);
|
||||
double tempCount = (num_frames / (33513982.0/6/355/263)) + 0.005; // +0.005s for rounding
|
||||
int num_seconds = (int)tempCount;
|
||||
int fraction = ((int)tempCount - num_seconds) * 100;
|
||||
int fraction = (int)((tempCount - num_seconds) * 100);
|
||||
int seconds = num_seconds % 60;
|
||||
int minutes = (num_seconds / 60) % 60;
|
||||
int hours = (num_seconds / 60 / 60) % 60;
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue