1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-08-23 04:26:46 -05:00

Merge pull request #11953 from t895/surface-tweak

android: Update surface parameters on emulation start
This commit is contained in:
liamwhite
2023-11-03 14:35:57 -04:00
committed by GitHub

View File

@@ -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) {