Browse Source
Merge pull request #11953 from t895/surface-tweak
android: Update surface parameters on emulation start
pull/15/merge
liamwhite
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
9 additions and
0 deletions
-
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() |
|
|
|
} |
|
|
|
@ -804,6 +806,13 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Synchronized |
|
|
|
fun updateSurface() { |
|
|
|
if (surface != null) { |
|
|
|
NativeLibrary.surfaceChanged(surface) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Synchronized |
|
|
|
fun clearSurface() { |
|
|
|
if (surface == null) { |
|
|
|
|