Fixed thumbnails during movies.

This commit is contained in:
n-a-c-h
2005-03-21 10:51:44 +00:00
parent eeadb1bb9d
commit 7872433c17
3 changed files with 28 additions and 1 deletions

View File

@@ -1507,4 +1507,7 @@ void SRAMDirCurDir()
getcwd(SRAMDir,1024);
}
void UpChdir()
{
chdir("..");
}

View File

@@ -68,6 +68,7 @@ EXTSYM vidbufferofsb
EXTSYM HalfTransB,HalfTransC
EXTSYM cur_zst_size,old_zst_size
EXTSYM MovieProcessing,mzt_chdir,UpChdir
%ifdef __MSDOS__
EXTSYM SB_blank
@@ -1291,6 +1292,12 @@ GetPicture:
jne .notskip
ret
.notskip
cmp byte[MovieProcessing],0
jz .nomovie
pushad
call mzt_chdir
popad
.nomovie
mov [PrevPictureVal],cl
mov edx,PrevPicture
mov ecx,64*56*2
@@ -1385,6 +1392,12 @@ GetPicture:
add esi,288*2
dec edx
jnz .ploopa2
cmp byte[MovieProcessing],0
jz .nomovie2
pushad
call UpChdir
popad
.nomovie2
ret
NEWSYM drawfillboxsc

View File

@@ -897,6 +897,17 @@ Save and load MZT
*/
void mzt_chdir()
{
size_t filename_len = strlen(zmv_vars.filename);
memcpy(zmv_vars.filename+filename_len-3, "mz", 2);
if (!isdigit(zmv_vars.filename[filename_len-1]))
{
zmv_vars.filename[filename_len-1] = 't';
}
chdir(zmv_vars.filename);
}
bool mzt_save(char *statename, bool thumb)
{
size_t filename_len = strlen(zmv_vars.filename);