debug: log the native player surface's render size

This commit is contained in:
KhooLy 2026-06-18 17:17:59 +03:00
parent 0badb831d0
commit 6c926821df

View file

@ -438,6 +438,7 @@ fn spawn_install_thread(app_handle: AppHandle, setup_tx: mpsc::Sender<Result<Nat
let nh = (r2.bottom - r2.top).max(2);
if (nw, nh) != last_size {
last_size = (nw, nh);
log::info!("player surface: resizing render surface to {nw}x{nh}");
unsafe {
SetWindowPos(child_hwnd, HWND_BOTTOM, 0, 0, nw, nh, SWP_NOACTIVATE);
}