Browse Source

NaClApplication: schedule one more redraw after fullscreen switch.

Otherwise NaCl displays previous image, notable mainly when exiting
16:9 fullscreen back to 4:3.
pull/7/head
Vladimír Vondruš 14 years ago
parent
commit
78e9c7add1
  1. 4
      src/Platform/NaClApplication.cpp

4
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;

Loading…
Cancel
Save