mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
- Exhumed movie fix.
This commit is contained in:
parent
cf662de165
commit
951d28f15d
1 changed files with 10 additions and 4 deletions
|
@ -158,7 +158,6 @@ int ReadFrame(FileReader &fp)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tileInvalidate(kMovieTile, -1, -1);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case kFrameDone:
|
case kFrameDone:
|
||||||
|
@ -190,8 +189,8 @@ static void ServeSample(const char** ptr, uint32_t* length)
|
||||||
|
|
||||||
void PlayMovie(const char* fileName)
|
void PlayMovie(const char* fileName)
|
||||||
{
|
{
|
||||||
CurFrame = TileFiles.tileCreate(kMovieTile, 320, 200);
|
TArray<uint8_t> f(64000, true);
|
||||||
if (CurFrame == nullptr) return;
|
CurFrame = f.Data();
|
||||||
|
|
||||||
int bDoFade = kTrue;
|
int bDoFade = kTrue;
|
||||||
int hFx = -1;
|
int hFx = -1;
|
||||||
|
@ -230,6 +229,7 @@ void PlayMovie(const char* fileName)
|
||||||
hFx = -1;
|
hFx = -1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
int fn = 0;
|
||||||
while (!inputState.keyBufferWaiting())
|
while (!inputState.keyBufferWaiting())
|
||||||
{
|
{
|
||||||
HandleAsync();
|
HandleAsync();
|
||||||
|
@ -252,8 +252,12 @@ void PlayMovie(const char* fileName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// I have no idea why this needs double buffering now.
|
||||||
|
fn ^= 1;
|
||||||
|
TileFiles.tileSetExternal(10000 + fn, 320, 200, CurFrame);
|
||||||
|
tileInvalidate(10000 + fn, -1, -1);
|
||||||
twod->ClearScreen();
|
twod->ClearScreen();
|
||||||
rotatesprite(160 << 16, 100 << 16, z, angle, kMovieTile, 0, 1, 2, 0, 0, xdim - 1, ydim - 1);
|
rotatesprite(160 << 16, 100 << 16, z, angle, 10000+fn, 0, 1, 2, 0, 0, xdim - 1, ydim - 1);
|
||||||
|
|
||||||
if (bDoFade) {
|
if (bDoFade) {
|
||||||
bDoFade = DoFadeIn();
|
bDoFade = DoFadeIn();
|
||||||
|
@ -267,6 +271,8 @@ void PlayMovie(const char* fileName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tileInvalidate(10000, -1, -1);
|
||||||
|
tileInvalidate(10001, -1, -1);
|
||||||
if (hFx > 0) {
|
if (hFx > 0) {
|
||||||
//FX_StopSound(hFx);
|
//FX_StopSound(hFx);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue