mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-22 09:56:22 +01:00
vid/android: Remove pixelFormat selection code, it only used to set desktop bits per pixel
This commit is contained in:
parent
0dbd400c12
commit
9571a6d025
@ -199,11 +199,6 @@ static int Android_GetGLAttribute( int eglAttr )
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int Android_GetSelectedPixelFormat( void )
|
|
||||||
{
|
|
||||||
return (*jni.env)->CallStaticIntMethod( jni.env, jni.actcls, jni.getSelectedPixelFormat );
|
|
||||||
}
|
|
||||||
|
|
||||||
qboolean R_Init_Video( const int type )
|
qboolean R_Init_Video( const int type )
|
||||||
{
|
{
|
||||||
char buf[MAX_VA_STRING];
|
char buf[MAX_VA_STRING];
|
||||||
@ -211,19 +206,6 @@ qboolean R_Init_Video( const int type )
|
|||||||
cv_vid_scale = Cvar_FindVar( "vid_scale" );
|
cv_vid_scale = Cvar_FindVar( "vid_scale" );
|
||||||
cv_vid_rotate = Cvar_FindVar( "vid_rotate" );
|
cv_vid_rotate = Cvar_FindVar( "vid_rotate" );
|
||||||
|
|
||||||
switch( Android_GetSelectedPixelFormat() )
|
|
||||||
{
|
|
||||||
case 1:
|
|
||||||
refState.desktopBitsPixel = 16;
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
refState.desktopBitsPixel = 8;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
refState.desktopBitsPixel = 32;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if( FS_FileExists( GI->iconpath, true ) )
|
if( FS_FileExists( GI->iconpath, true ) )
|
||||||
{
|
{
|
||||||
Q_snprintf( buf, sizeof( buf ), "%s/%s/%s", COM_CheckStringEmpty( host.rodir ) ? host.rodir : host.rootdir, GI->gamefolder, GI->iconpath );
|
Q_snprintf( buf, sizeof( buf ), "%s/%s/%s", COM_CheckStringEmpty( host.rodir ) ? host.rodir : host.rootdir, GI->gamefolder, GI->iconpath );
|
||||||
|
Loading…
Reference in New Issue
Block a user