mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
************************************************************
* Merged Source Code from Development Trunk: Revision 4063 * ************************************************************ - Source Code is merged from: https://81.169.133.124/source/ja2/branches/Wanne/JA2%201.13%20MP - This will be the Source for the Beta 2011 Test git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4064 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+36
-36
@@ -24,39 +24,39 @@ void InitJA2SplashScreen()
|
||||
UINT32 uiLogoID = 0;
|
||||
HVSURFACE hVSurface; // unused jonathanl // lalien reenabled for international versions
|
||||
VSURFACE_DESC VSurfaceDesc; //unused jonathanl // lalien reenabled for international versions
|
||||
#ifdef JA2TESTVERSION
|
||||
INT32 i = 0;
|
||||
# ifdef JA2TESTVERSION
|
||||
INT32 i = 0;
|
||||
|
||||
memset( &VSurfaceDesc, 0, sizeof( VSURFACE_DESC ) );
|
||||
VSurfaceDesc.fCreateFlags = VSURFACE_CREATE_FROMFILE | VSURFACE_SYSTEM_MEM_USAGE;
|
||||
sprintf( VSurfaceDesc.ImageFile, "LOADSCREENS\\Notification.sti" );
|
||||
if( !AddVideoSurface( &VSurfaceDesc, &uiLogoID ) )
|
||||
{
|
||||
//AssertMsg( 0, String( "Failed to load %s", VSurfaceDesc.ImageFile ) );
|
||||
return;
|
||||
}
|
||||
GetVideoSurface(&hVSurface, uiLogoID );
|
||||
//BltVideoSurfaceToVideoSurface( ghFrameBuffer, hVSurface, 0, 0, 0, 0, NULL );
|
||||
BltVideoSurfaceToVideoSurface( ghFrameBuffer, hVSurface, 0, iScreenWidthOffset, iScreenHeightOffset, 0, NULL );
|
||||
DeleteVideoSurfaceFromIndex( uiLogoID );
|
||||
|
||||
|
||||
InvalidateScreen();
|
||||
RefreshScreen( NULL );
|
||||
|
||||
guiSplashStartTime = GetJA2Clock();
|
||||
while( i < 60 * 15 )//guiSplashStartTime + 15000 > GetJA2Clock() )
|
||||
{
|
||||
//Allow the user to pick his bum.
|
||||
InvalidateScreen();
|
||||
RefreshScreen( NULL );
|
||||
i++;
|
||||
}
|
||||
# endif // JA2TESTVERSION
|
||||
|
||||
memset( &VSurfaceDesc, 0, sizeof( VSURFACE_DESC ) );
|
||||
VSurfaceDesc.fCreateFlags = VSURFACE_CREATE_FROMFILE | VSURFACE_SYSTEM_MEM_USAGE;
|
||||
sprintf( VSurfaceDesc.ImageFile, "LOADSCREENS\\Notification.sti" );
|
||||
if( !AddVideoSurface( &VSurfaceDesc, &uiLogoID ) )
|
||||
{
|
||||
//AssertMsg( 0, String( "Failed to load %s", VSurfaceDesc.ImageFile ) );
|
||||
return;
|
||||
}
|
||||
GetVideoSurface(&hVSurface, uiLogoID );
|
||||
//BltVideoSurfaceToVideoSurface( ghFrameBuffer, hVSurface, 0, 0, 0, 0, NULL );
|
||||
BltVideoSurfaceToVideoSurface( ghFrameBuffer, hVSurface, 0, iScreenWidthOffset, iScreenHeightOffset, 0, NULL );
|
||||
DeleteVideoSurfaceFromIndex( uiLogoID );
|
||||
|
||||
|
||||
InvalidateScreen();
|
||||
RefreshScreen( NULL );
|
||||
|
||||
guiSplashStartTime = GetJA2Clock();
|
||||
while( i < 60 * 15 )//guiSplashStartTime + 15000 > GetJA2Clock() )
|
||||
{
|
||||
//Allow the user to pick his bum.
|
||||
InvalidateScreen();
|
||||
RefreshScreen( NULL );
|
||||
i++;
|
||||
}
|
||||
#endif
|
||||
|
||||
memset( &VSurfaceDesc, 0, sizeof( VSURFACE_DESC ) );
|
||||
VSurfaceDesc.fCreateFlags = VSURFACE_CREATE_FROMFILE | VSURFACE_SYSTEM_MEM_USAGE;
|
||||
GetMLGFilename( VSurfaceDesc.ImageFile, MLG_SPLASH );
|
||||
GetMLGFilename( VSurfaceDesc.ImageFile, MLG_SPLASH );
|
||||
try
|
||||
{
|
||||
if( !AddVideoSurface( &VSurfaceDesc, &uiLogoID ) )
|
||||
@@ -65,15 +65,15 @@ void InitJA2SplashScreen()
|
||||
return;
|
||||
}
|
||||
}
|
||||
catch(CBasicException &ex)
|
||||
catch(std::exception &ex)
|
||||
{
|
||||
RETHROWEXCEPTION(L"Failed loading splash screen", &ex);
|
||||
SGP_RETHROW(L"Failed loading splash screen", ex);
|
||||
}
|
||||
|
||||
GetVideoSurface( &hVSurface, uiLogoID );
|
||||
BltVideoSurfaceToVideoSurface( ghFrameBuffer, hVSurface, 0, iScreenWidthOffset, iScreenHeightOffset, 0, NULL );
|
||||
DeleteVideoSurfaceFromIndex( uiLogoID );
|
||||
#endif
|
||||
GetVideoSurface( &hVSurface, uiLogoID );
|
||||
BltVideoSurfaceToVideoSurface( ghFrameBuffer, hVSurface, 0, iScreenWidthOffset, iScreenHeightOffset, 0, NULL );
|
||||
DeleteVideoSurfaceFromIndex( uiLogoID );
|
||||
#endif // ENGLISH
|
||||
|
||||
InvalidateScreen();
|
||||
RefreshScreen( NULL );
|
||||
|
||||
Reference in New Issue
Block a user