Showing frame count during record/playback (we'll make a toggle later).

This commit is contained in:
n-a-c-h
2005-03-21 12:10:16 +00:00
parent 60a87572d4
commit 74579ba30e
2 changed files with 35 additions and 2 deletions

View File

@@ -3568,6 +3568,24 @@ NEWSYM copyvid
.nfivex5 .nfivex5
dec dword[MessageOn] dec dword[MessageOn]
.nomsg .nomsg
EXTSYM MovieFrameStr,GetMovieFrameStr
cmp byte[MovieProcessing],0
jz .nomovie4
pushad
call GetMovieFrameStr
popad
mov edi,MovieFrameStr
cmp byte[cbitmode],1
jne .not16bframe
mov esi,216*288*2+32*2
add esi,[vidbuffer]
call OutputGraphicString16b5x5
jmp .nomovie4
.not16bframe
mov esi,216*288+32
add esi,[vidbuffer]
call OutputGraphicString5x5
.nomovie4
jmp vidpaste jmp vidpaste
SECTION .bss SECTION .bss
.sdrawptr resd 1 .sdrawptr resd 1

View File

@@ -1192,7 +1192,6 @@ MovieProcessing
*/ */
extern unsigned int MsgCount, MessageOn; extern unsigned int MsgCount, MessageOn;
extern unsigned char MovieProcessing, *Msgptr; extern unsigned char MovieProcessing, *Msgptr;
@@ -1404,3 +1403,19 @@ void MovieRecord()
memcpy (&fnamest[statefileloc-3], FileExt, 4); memcpy (&fnamest[statefileloc-3], FileExt, 4);
} }
} }
char MovieFrameStr[10];
void GetMovieFrameStr()
{
*MovieFrameStr = 0;
switch (MovieProcessing)
{
case 1:
sprintf(MovieFrameStr, "%u",zmv_frames_replayed());
break;
case 2:
sprintf(MovieFrameStr, "%u",zmv_frames_recorded());
break;
}
}