Skip to content

Commit

Permalink
[Android] Update video make file
Browse files Browse the repository at this point in the history
  • Loading branch information
zilmar committed Apr 27, 2017
1 parent 14f4eac commit 7a193e5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Android/jni/Project64-video/Project64-video.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ include $(CLEAR_VARS)
LOCAL_PATH := $(JNI_LOCAL_PATH)
SRCDIR := ./

LOCAL_MODULE := Project64-gfx-Project64
LOCAL_MODULE := Project64-gfx
LOCAL_STATIC_LIBRARIES := common \
zlib \
Settings \
Expand Down
9 changes: 2 additions & 7 deletions Android/src/emu/project64/AndroidDevice.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ public class AndroidDevice
public static final boolean IS_ACTION_BAR_AVAILABLE = AndroidDevice.IS_HONEYCOMB && !AndroidDevice.IS_OUYA_HARDWARE;

final static boolean isTv;
public final static int nativeWidth, nativeWidthOriginal;
public final static int nativeHeight, nativeHeightOriginal;
public final static int nativeWidth;
public final static int nativeHeight;

public static boolean MapVolumeKeys = false;

Expand All @@ -91,11 +91,6 @@ public class AndroidDevice
}
nativeWidth = _nativeWidth;
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()
Expand Down
3 changes: 2 additions & 1 deletion Android/src/emu/project64/jni/NativeVideo.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ public class NativeVideo
{
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 String getResolutionName(int Index);
public static native int GetScreenResWidth(int Index);
Expand Down
9 changes: 7 additions & 2 deletions Android/src/emu/project64/jni/VideoSettingID.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ public enum VideoSettingID
// General Settings
Set_vsync, Set_Rotate, Set_texenh_options, Set_wrpVRAM,
Set_wrpFBO, Set_wrpAnisotropic, Set_autodetect_ucode, Set_ucode, Set_wireframe,
Set_wfmode, Set_unk_as_red, Set_unk_clear, Set_ghq_fltr,
Set_ghq_cmpr, Set_ghq_enht, Set_ghq_hirs, Set_ghq_enht_cmpr, Set_ghq_enht_tile,
Set_wfmode, Set_ghq_fltr, Set_ghq_cmpr, Set_ghq_enht, Set_ghq_hirs, Set_ghq_enht_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_cache_save, Set_ghq_cache_size, Set_ghq_hirs_let_texartists_fly,
Expand All @@ -42,6 +41,12 @@ public enum VideoSettingID

//RDB Setting
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;
Expand Down

0 comments on commit 7a193e5

Please sign in to comment.