force android emu_window to update height and width on surface change, solving aspect ratio issues on some screens (#1907)

This commit is contained in:
David Griswold 2026-03-19 05:46:56 -07:00 committed by GitHub
parent ab39df3ff0
commit f721a474e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,6 +25,8 @@ bool EmuWindow_Android::OnSurfaceChanged(ANativeWindow* surface) {
render_window = surface;
window_info.type = Frontend::WindowSystemType::Android;
window_info.render_surface = surface;
window_width = ANativeWindow_getWidth(surface);
window_height = ANativeWindow_getHeight(surface);
StopPresenting();
OnFramebufferSizeChanged();