Skip to content
Snippets Groups Projects
Unverified Commit d6e6ab11 authored by liamwhite's avatar liamwhite Committed by GitHub
Browse files

Merge pull request #11953 from t895/surface-tweak

android: Update surface parameters on emulation start
parents eda40338 b3a1f793
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment