mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-03-27 05:49:12 -06:00
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:
parent
ab39df3ff0
commit
f721a474e4
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user