mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
- removed loading of unused ja2_logo.STI
- message "windowed mode requires a color depth of 16bpp" localized (need translation to Dutch & German) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3163 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -356,8 +356,6 @@ UINT32 InitScreenInitialize(void)
|
||||
|
||||
UINT32 InitScreenHandle(void)
|
||||
{
|
||||
VSURFACE_DESC vs_desc;
|
||||
static HVSURFACE hVSurface;
|
||||
static UINT8 ubCurrentScreen = 255;
|
||||
|
||||
if ( ubCurrentScreen == 255 )
|
||||
@@ -387,18 +385,6 @@ UINT32 InitScreenHandle(void)
|
||||
// Load version number....
|
||||
//HandleLimitedNumExecutions( );
|
||||
|
||||
// Load init screen and blit!
|
||||
vs_desc.fCreateFlags = VSURFACE_CREATE_FROMFILE | VSURFACE_SYSTEM_MEM_USAGE;
|
||||
|
||||
strcpy( vs_desc.ImageFile, "ja2_logo.STI" );
|
||||
|
||||
hVSurface = CreateVideoSurface( &vs_desc );
|
||||
//SB: JA2 Gold Rus doesn't contain such file!
|
||||
#ifndef RUSSIAN
|
||||
if( !hVSurface )
|
||||
AssertMsg( 0, "Failed to load ja2_logo.sti!" );
|
||||
#endif
|
||||
//BltVideoSurfaceToVideoSurface( ghFrameBuffer, hVSurface, 0, 0, 0, VS_BLT_FAST, NULL );
|
||||
ubCurrentScreen = 1;
|
||||
|
||||
// Init screen
|
||||
@@ -485,14 +471,6 @@ UINT32 InitScreenHandle(void)
|
||||
|
||||
InvalidateScreen( );
|
||||
|
||||
// Delete video Surface
|
||||
//SB: JA2 Gold Rus doesn't contain such file!
|
||||
#ifdef RUSSIAN
|
||||
if( hVSurface )
|
||||
#endif
|
||||
DeleteVideoSurface( hVSurface );
|
||||
//ATE: Set to true to reset before going into main screen!
|
||||
|
||||
SetCurrentCursorFromDatabase( VIDEO_NO_CURSOR );
|
||||
|
||||
return( INIT_SCREEN );
|
||||
|
||||
Reference in New Issue
Block a user