movie dialog: fixed subsecond calculation; added subsecond rounding code; expanded the width of frameCount/rerecordCount display.

This commit is contained in:
gocha 2009-10-01 14:32:03 +00:00
parent 7c082ecaa3
commit 7bae874515
2 changed files with 2 additions and 2 deletions

View File

@ -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.