Bugfix for #734 + small cleanup
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2676 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
Changes towards version 0.7:
|
||||
- DUCK videos now play correctly after a video mode change; bug #734 - Alex
|
||||
- Cancel key will now quit out of the Manifest Menu (Bug #838) - Michael
|
||||
- Added -w and -x commandline options, to counter -f and -o; used these
|
||||
to implement "Safe Mode" links in the Win32 installer (Bug #946)
|
||||
|
||||
@@ -53,7 +53,7 @@ FreeKernel (void)
|
||||
DestroyDrawable (ReleaseDrawable (Screen));
|
||||
DestroyContext (ReleaseContext (ScreenContext));
|
||||
|
||||
UninitVideo ();
|
||||
UninitVideoPlayer ();
|
||||
UninitSound ();
|
||||
UninitGraphics ();
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
static VIDEO_REF _cur_video = NULL_VIDEO_REF;
|
||||
|
||||
BOOLEAN
|
||||
InitVideo (BOOLEAN useCDROM)
|
||||
InitVideoPlayer (BOOLEAN useCDROM)
|
||||
//useCDROM doesn't really apply to us
|
||||
{
|
||||
TFB_PixelFormat fmt;
|
||||
@@ -41,7 +41,7 @@ InitVideo (BOOLEAN useCDROM)
|
||||
}
|
||||
|
||||
void
|
||||
UninitVideo ()
|
||||
UninitVideoPlayer (void)
|
||||
{
|
||||
TFB_UninitVideoPlayer ();
|
||||
VideoDecoder_Uninit ();
|
||||
|
||||
@@ -28,15 +28,10 @@ typedef enum
|
||||
SOFTWARE_FMV
|
||||
} VIDEO_TYPE;
|
||||
|
||||
#define MODES_UNDEFINED ((BYTE)~0)
|
||||
|
||||
typedef DWORD VIDEO_REF;
|
||||
|
||||
extern BOOLEAN InitVideo (BOOLEAN UseCDROM);
|
||||
extern void UninitVideo (void);
|
||||
|
||||
extern BYTE SetVideoMode (BYTE new_mode);
|
||||
extern BYTE GetVideoMode (void);
|
||||
extern BOOLEAN InitVideoPlayer (BOOLEAN UseCDROM);
|
||||
extern void UninitVideoPlayer (void);
|
||||
|
||||
extern VIDEO_REF LoadVideoFile (const char *pStr);
|
||||
extern BOOLEAN DestroyVideo (VIDEO_REF VideoRef);
|
||||
|
||||
@@ -96,7 +96,7 @@ LoadKernel (int argc, char *argv[])
|
||||
if (!InitGraphics (argc, argv, MIN_K_REQUIRED))
|
||||
return FALSE;
|
||||
InitSound (argc, argv);
|
||||
InitVideo (TRUE);
|
||||
InitVideoPlayer (TRUE);
|
||||
|
||||
ScreenContext = CaptureContext (CreateContext ());
|
||||
if (ScreenContext == NULL)
|
||||
|
||||
@@ -1289,8 +1289,10 @@ SetGlobalOptions (GLOBALOPTS *opts)
|
||||
(NewGfxFlags != GfxFlags))
|
||||
{
|
||||
FlushGraphics ();
|
||||
UninitVideoPlayer ();
|
||||
TFB_DrawScreen_ReinitVideo (NewDriver, NewGfxFlags, NewWidth, NewHeight);
|
||||
FlushGraphics ();
|
||||
InitVideoPlayer (TRUE);
|
||||
}
|
||||
optSubtitles = (opts->subtitles == OPTVAL_ENABLED) ? TRUE : FALSE;
|
||||
// optWhichMusic = (opts->music == OPTVAL_3DO) ? OPT_3DO : OPT_PC;
|
||||
|
||||
Reference in New Issue
Block a user