summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-11-03 19:35:57 +0100
committerGitHub <noreply@github.com>2023-11-03 19:35:57 +0100
commitd6e6ab11b1699c1de4ca7225f9aecbf3780836cf (patch)
treead2ff8b253582ac5a190a2cb67dd269af36c92da
parentMerge pull request #11948 from german77/hard_ring (diff)
parentandroid: Update surface parameters on emulation start (diff)
downloadyuzu-d6e6ab11b1699c1de4ca7225f9aecbf3780836cf.tar
yuzu-d6e6ab11b1699c1de4ca7225f9aecbf3780836cf.tar.gz
yuzu-d6e6ab11b1699c1de4ca7225f9aecbf3780836cf.tar.bz2
yuzu-d6e6ab11b1699c1de4ca7225f9aecbf3780836cf.tar.lz
yuzu-d6e6ab11b1699c1de4ca7225f9aecbf3780836cf.tar.xz
yuzu-d6e6ab11b1699c1de4ca7225f9aecbf3780836cf.tar.zst
yuzu-d6e6ab11b1699c1de4ca7225f9aecbf3780836cf.zip
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt
index 07bd78bf7..c456c0592 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt
@@ -312,6 +312,8 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
ViewUtils.showView(binding.surfaceInputOverlay)
ViewUtils.hideView(binding.loadingIndicator)
+ emulationState.updateSurface()
+
// Setup overlay
updateShowFpsOverlay()
}
@@ -805,6 +807,13 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
}
@Synchronized
+ fun updateSurface() {
+ if (surface != null) {
+ NativeLibrary.surfaceChanged(surface)
+ }
+ }
+
+ @Synchronized
fun clearSurface() {
if (surface == null) {
Log.warning("[EmulationFragment] clearSurface called, but surface already null.")