From 78e9c7add1affe8044ebe7116e914f679098e189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 22 Nov 2012 20:19:19 +0100 Subject: [PATCH] NaClApplication: schedule one more redraw after fullscreen switch. Otherwise NaCl displays previous image, notable mainly when exiting 16:9 fullscreen back to 4:3. --- src/Platform/NaClApplication.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Platform/NaClApplication.cpp b/src/Platform/NaClApplication.cpp index a57aae744..3059d63b2 100644 --- a/src/Platform/NaClApplication.cpp +++ b/src/Platform/NaClApplication.cpp @@ -92,8 +92,10 @@ void NaClApplication::DidChangeView(const pp::View& view) { /* Fullscreen switch in progress */ if(flags & Flag::FullscreenSwitchInProgress) { /* Done, remove the progress flag */ - if(isFullscreen() == bool(flags & Flag::WillBeFullscreen)) + if(isFullscreen() == bool(flags & Flag::WillBeFullscreen)) { flags &= ~Flag::FullscreenSwitchInProgress; + flags |= Flag::Redraw; + } /* Don't process anything during the switch */ else return;