mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
- Bugfix: Chinese Version crashed on start (problem with font initialization)
- Bugfix: Assertion erro if "ja2_settings.ini" was not present git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3394 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+12
-5
@@ -57,11 +57,18 @@ void InitJA2SplashScreen()
|
||||
memset( &VSurfaceDesc, 0, sizeof( VSURFACE_DESC ) );
|
||||
VSurfaceDesc.fCreateFlags = VSURFACE_CREATE_FROMFILE | VSURFACE_SYSTEM_MEM_USAGE;
|
||||
GetMLGFilename( VSurfaceDesc.ImageFile, MLG_SPLASH );
|
||||
if( !AddVideoSurface( &VSurfaceDesc, &uiLogoID ) )
|
||||
{
|
||||
AssertMsg( 0, String( "Failed to load %s", VSurfaceDesc.ImageFile ) );
|
||||
return;
|
||||
}
|
||||
try
|
||||
{
|
||||
if( !AddVideoSurface( &VSurfaceDesc, &uiLogoID ) )
|
||||
{
|
||||
AssertMsg( 0, String( "Failed to load %s", VSurfaceDesc.ImageFile ) );
|
||||
return;
|
||||
}
|
||||
}
|
||||
catch(CBasicException &ex)
|
||||
{
|
||||
RETHROWEXCEPTION(L"Failed loading splash screen", &ex);
|
||||
}
|
||||
|
||||
GetVideoSurface( &hVSurface, uiLogoID );
|
||||
BltVideoSurfaceToVideoSurface( ghFrameBuffer, hVSurface, 0, iScreenWidthOffset, iScreenHeightOffset, 0, NULL );
|
||||
|
||||
Reference in New Issue
Block a user