movie dialog: changed framerate from 60 (or 50 for PAL games) to real framerate.
movie: fixed the initial value of rerecord count. it should be 0, not 1.
This commit is contained in:
parent
9706c82a8c
commit
41ab92edb3
|
@ -139,7 +139,7 @@ void UpdateReplayDialog(HWND hwndDlg)
|
||||||
if(ismovie)
|
if(ismovie)
|
||||||
{
|
{
|
||||||
char tmp[256];
|
char tmp[256];
|
||||||
uint32 div;
|
double div;
|
||||||
|
|
||||||
sprintf(tmp, "%u", (unsigned)info.num_frames);
|
sprintf(tmp, "%u", (unsigned)info.num_frames);
|
||||||
SetWindowTextA(GetDlgItem(hwndDlg,IDC_LABEL_FRAMES), tmp); // frames
|
SetWindowTextA(GetDlgItem(hwndDlg,IDC_LABEL_FRAMES), tmp); // frames
|
||||||
|
@ -148,13 +148,13 @@ void UpdateReplayDialog(HWND hwndDlg)
|
||||||
|
|
||||||
EnableWindow(GetDlgItem(hwndDlg,IDC_CHECK_READONLY),TRUE);
|
EnableWindow(GetDlgItem(hwndDlg,IDC_CHECK_READONLY),TRUE);
|
||||||
|
|
||||||
div = (FCEUI_GetCurrentVidSystem(0,0)) ? 50 : 60; // PAL timing
|
div = (FCEUI_GetCurrentVidSystem(0,0)) ? 50.006977968268290849 : 60.098813897440515532; // PAL timing
|
||||||
float tempCount = (info.num_frames % 60); //Get fraction of a second
|
double tempCount = (info.num_frames / div) + 0.005; // +0.005s for rounding
|
||||||
float getTime = ((tempCount / div) * 100); //Convert to 2 digit number
|
int num_seconds = (int)tempCount;
|
||||||
int fraction = getTime; //Convert to 2 digit int
|
int fraction = (int)((tempCount - num_seconds) * 100);
|
||||||
int seconds = (info.num_frames / div) % 60;
|
int seconds = num_seconds % 60;
|
||||||
int minutes = (info.num_frames/(div*60))%60;
|
int minutes = (num_seconds / 60) % 60;
|
||||||
int hours = info.num_frames/(div*60*60);
|
int hours = (num_seconds / 60 / 60) % 60;
|
||||||
sprintf(tmp, "%02d:%02d:%02d.%02d", hours, minutes, seconds, fraction);
|
sprintf(tmp, "%02d:%02d:%02d.%02d", hours, minutes, seconds, fraction);
|
||||||
SetWindowTextA(GetDlgItem(hwndDlg,IDC_LABEL_LENGTH), tmp); // length
|
SetWindowTextA(GetDlgItem(hwndDlg,IDC_LABEL_LENGTH), tmp); // length
|
||||||
|
|
||||||
|
|
|
@ -323,7 +323,7 @@ MovieData::MovieData()
|
||||||
: version(MOVIE_VERSION)
|
: version(MOVIE_VERSION)
|
||||||
, emuVersion(FCEU_VERSION_NUMERIC)
|
, emuVersion(FCEU_VERSION_NUMERIC)
|
||||||
, palFlag(false)
|
, palFlag(false)
|
||||||
, rerecordCount(1)
|
, rerecordCount(0)
|
||||||
, binaryFlag(false)
|
, binaryFlag(false)
|
||||||
, greenZoneCount(0)
|
, greenZoneCount(0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue