fix(windows): fixed black screen while navigating between videos in full screen

This commit is contained in:
Cameron
2026-04-26 16:59:50 +01:00
committed by GitHub
parent 425da3ab7d
commit 6371d7a36e
5 changed files with 45 additions and 4 deletions
+4
View File
@@ -438,6 +438,10 @@ void MpvPlayerPlugin::HandleMethodCall(
HWND hwnd = GetWindow();
bool success = display_mode_manager_.RestoreOriginalHDRState(hwnd);
result->Success(flutter::EncodableValue(success));
} else if (method == "isModeChanged") {
result->Success(flutter::EncodableValue(display_mode_manager_.IsModeChanged()));
} else if (method == "isHDRChanged") {
result->Success(flutter::EncodableValue(display_mode_manager_.IsHDRChanged()));
} else {
result->NotImplemented();
}