mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
fixing avi files.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@243 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
114501d2cb
commit
ab8d562f8b
1 changed files with 5 additions and 8 deletions
|
@ -1173,7 +1173,7 @@ qboolean Media_ShowFilm(void)
|
||||||
|
|
||||||
lpbi = (LPBITMAPINFOHEADER)AVIStreamGetFrame(pgf, currentframe); // Grab Data From The AVI Stream
|
lpbi = (LPBITMAPINFOHEADER)AVIStreamGetFrame(pgf, currentframe); // Grab Data From The AVI Stream
|
||||||
currentframe++;
|
currentframe++;
|
||||||
if (!lpbi)//oops
|
if (!lpbi || lpbi->biBitCount != 24)//oops
|
||||||
{
|
{
|
||||||
SCR_SetUpToDrawConsole();
|
SCR_SetUpToDrawConsole();
|
||||||
#ifdef SWQUAKE
|
#ifdef SWQUAKE
|
||||||
|
@ -1184,7 +1184,7 @@ qboolean Media_ShowFilm(void)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Media_ShowFrameBGR_24_Flip(staticfilmimage, imagewidth, imageheight);
|
Media_ShowFrameBGR_24_Flip((char*)lpbi+lpbi->biSize, lpbi->biWidth, lpbi->biHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pavisound)
|
if (pavisound)
|
||||||
|
@ -1605,9 +1605,6 @@ void Media_RecordFilm_f (void){}
|
||||||
void M_Menu_Media_f (void) {}
|
void M_Menu_Media_f (void) {}
|
||||||
char *Media_NextTrack(void) {return NULL;}
|
char *Media_NextTrack(void) {return NULL;}
|
||||||
|
|
||||||
void Media_ShowFrame(qbyte *framedata, int inwidth, int inheight, qbyte *bgrandupsidedown) {}
|
|
||||||
void Media_ShowFrame8bit(qbyte *framedata, int inwidth, int inheight, qbyte *palette) {}
|
|
||||||
|
|
||||||
int filmtexture;
|
int filmtexture;
|
||||||
media_filmtype_t media_filmtype;
|
media_filmtype_t media_filmtype;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue