[Android] Update video make file
This commit is contained in:
parent
14f4eac6c2
commit
7a193e5e56
|
@ -5,7 +5,7 @@ include $(CLEAR_VARS)
|
||||||
LOCAL_PATH := $(JNI_LOCAL_PATH)
|
LOCAL_PATH := $(JNI_LOCAL_PATH)
|
||||||
SRCDIR := ./
|
SRCDIR := ./
|
||||||
|
|
||||||
LOCAL_MODULE := Project64-gfx-Project64
|
LOCAL_MODULE := Project64-gfx
|
||||||
LOCAL_STATIC_LIBRARIES := common \
|
LOCAL_STATIC_LIBRARIES := common \
|
||||||
zlib \
|
zlib \
|
||||||
Settings \
|
Settings \
|
||||||
|
|
|
@ -64,8 +64,8 @@ public class AndroidDevice
|
||||||
public static final boolean IS_ACTION_BAR_AVAILABLE = AndroidDevice.IS_HONEYCOMB && !AndroidDevice.IS_OUYA_HARDWARE;
|
public static final boolean IS_ACTION_BAR_AVAILABLE = AndroidDevice.IS_HONEYCOMB && !AndroidDevice.IS_OUYA_HARDWARE;
|
||||||
|
|
||||||
final static boolean isTv;
|
final static boolean isTv;
|
||||||
public final static int nativeWidth, nativeWidthOriginal;
|
public final static int nativeWidth;
|
||||||
public final static int nativeHeight, nativeHeightOriginal;
|
public final static int nativeHeight;
|
||||||
|
|
||||||
public static boolean MapVolumeKeys = false;
|
public static boolean MapVolumeKeys = false;
|
||||||
|
|
||||||
|
@ -91,11 +91,6 @@ public class AndroidDevice
|
||||||
}
|
}
|
||||||
nativeWidth = _nativeWidth;
|
nativeWidth = _nativeWidth;
|
||||||
nativeHeight = _nativeHeight;
|
nativeHeight = _nativeHeight;
|
||||||
|
|
||||||
final float aspect = 0.75f;
|
|
||||||
final boolean isLetterboxed = ( (float) nativeHeight / (float) nativeWidth ) > aspect;
|
|
||||||
nativeWidthOriginal = isLetterboxed ? nativeWidth : Math.round( nativeHeight / aspect );
|
|
||||||
nativeHeightOriginal = isLetterboxed ? Math.round( nativeWidth * aspect ) : nativeHeight;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isAndroidTv()
|
public static boolean isAndroidTv()
|
||||||
|
|
|
@ -21,9 +21,10 @@ public class NativeVideo
|
||||||
{
|
{
|
||||||
static
|
static
|
||||||
{
|
{
|
||||||
System.loadLibrary( "Project64-gfx-glide64" );
|
System.loadLibrary( "Project64-gfx" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static native void UpdateScreenRes(int ScreenWidth, int ScreenHeight);
|
||||||
public static native int getResolutionCount();
|
public static native int getResolutionCount();
|
||||||
public static native String getResolutionName(int Index);
|
public static native String getResolutionName(int Index);
|
||||||
public static native int GetScreenResWidth(int Index);
|
public static native int GetScreenResWidth(int Index);
|
||||||
|
|
|
@ -15,8 +15,7 @@ public enum VideoSettingID
|
||||||
// General Settings
|
// General Settings
|
||||||
Set_vsync, Set_Rotate, Set_texenh_options, Set_wrpVRAM,
|
Set_vsync, Set_Rotate, Set_texenh_options, Set_wrpVRAM,
|
||||||
Set_wrpFBO, Set_wrpAnisotropic, Set_autodetect_ucode, Set_ucode, Set_wireframe,
|
Set_wrpFBO, Set_wrpAnisotropic, Set_autodetect_ucode, Set_ucode, Set_wireframe,
|
||||||
Set_wfmode, Set_unk_as_red, Set_unk_clear, Set_ghq_fltr,
|
Set_wfmode, Set_ghq_fltr, Set_ghq_cmpr, Set_ghq_enht, Set_ghq_hirs, Set_ghq_enht_cmpr,
|
||||||
Set_ghq_cmpr, Set_ghq_enht, Set_ghq_hirs, Set_ghq_enht_cmpr, Set_ghq_enht_tile,
|
|
||||||
Set_ghq_enht_f16bpp, Set_ghq_enht_gz, Set_ghq_enht_nobg, Set_ghq_hirs_cmpr,
|
Set_ghq_enht_f16bpp, Set_ghq_enht_gz, Set_ghq_enht_nobg, Set_ghq_hirs_cmpr,
|
||||||
Set_ghq_hirs_tile, Set_ghq_hirs_f16bpp, Set_ghq_hirs_gz, Set_ghq_hirs_altcrc,
|
Set_ghq_hirs_tile, Set_ghq_hirs_f16bpp, Set_ghq_hirs_gz, Set_ghq_hirs_altcrc,
|
||||||
Set_ghq_cache_save, Set_ghq_cache_size, Set_ghq_hirs_let_texartists_fly,
|
Set_ghq_cache_save, Set_ghq_cache_size, Set_ghq_hirs_let_texartists_fly,
|
||||||
|
@ -42,6 +41,12 @@ public enum VideoSettingID
|
||||||
|
|
||||||
//RDB Setting
|
//RDB Setting
|
||||||
Set_ucodeLookup,
|
Set_ucodeLookup,
|
||||||
|
|
||||||
|
//Logging Settings
|
||||||
|
Set_Logging_MD5, Set_Logging_Thread, Set_Logging_Path, Set_Logging_Settings,
|
||||||
|
Set_Logging_Unknown, Set_Logging_Glide64, Set_Logging_Interface, Set_Logging_Resolution,
|
||||||
|
Set_Logging_Glitch, Set_Logging_VideoRDP, Set_Logging_TLUT, Set_Logging_PNG,
|
||||||
|
Set_Logging_OGLWrapper, Set_Logging_RDPCommands,
|
||||||
;
|
;
|
||||||
|
|
||||||
private int value;
|
private int value;
|
||||||
|
|
Loading…
Reference in New Issue