engine: platform: android: replace va function calls.
This commit is contained in:
parent
34160151a4
commit
6486533355
1 changed files with 5 additions and 11 deletions
|
@ -240,7 +240,7 @@ int Android_GetSelectedPixelFormat( void )
|
||||||
|
|
||||||
qboolean R_Init_Video( const int type )
|
qboolean R_Init_Video( const int type )
|
||||||
{
|
{
|
||||||
string safe;
|
char buf[MAX_VA_STRING];
|
||||||
qboolean retval;
|
qboolean retval;
|
||||||
|
|
||||||
switch( Android_GetSelectedPixelFormat() )
|
switch( Android_GetSelectedPixelFormat() )
|
||||||
|
@ -258,14 +258,8 @@ qboolean R_Init_Video( const int type )
|
||||||
|
|
||||||
if( FS_FileExists( GI->iconpath, true ) )
|
if( FS_FileExists( GI->iconpath, true ) )
|
||||||
{
|
{
|
||||||
if( host.rodir[0] )
|
Q_snprintf( buf, sizeof( buf ), "%s/%s/%s", COM_CheckStringEmpty( host.rodir ) ? host.rodir : host.rootdir, GI->gamefolder, GI->iconpath );
|
||||||
{
|
Android_SetIcon( buf );
|
||||||
Android_SetIcon( va( "%s/%s/%s", host.rodir, GI->gamefolder, GI->iconpath ) );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Android_SetIcon( va( "%s/%s/%s", host.rootdir, GI->gamefolder, GI->iconpath ) );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Android_SetTitle( GI->title );
|
Android_SetTitle( GI->title );
|
||||||
|
@ -281,8 +275,8 @@ qboolean R_Init_Video( const int type )
|
||||||
glw_state.software = false;
|
glw_state.software = false;
|
||||||
Sys_LoadLibrary( &egl_info );
|
Sys_LoadLibrary( &egl_info );
|
||||||
|
|
||||||
if( !glw_state.safe && Sys_GetParmFromCmdLine( "-safegl", safe ) )
|
if( !glw_state.safe && Sys_GetParmFromCmdLine( "-safegl", buf ) )
|
||||||
glw_state.safe = bound( SAFE_NO, Q_atoi( safe ), SAFE_DONTCARE );
|
glw_state.safe = bound( SAFE_NO, Q_atoi( buf ), SAFE_DONTCARE );
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Reference in a new issue