Browse Source

Platform::Sdl2Application: just wait for next event.

No need to loop over when SDL has function designed to do this.
pull/278/head
Vladimír Vondruš 13 years ago
parent
commit
33ad4b0cff
  1. 4
      src/Platform/Sdl2Application.cpp

4
src/Platform/Sdl2Application.cpp

@ -24,8 +24,6 @@
#include "Sdl2Application.h"
#include <Utility/utilities.h>
#include "Context.h"
#include "ExtensionWrangler.h"
@ -178,7 +176,7 @@ void Sdl2Application::mainLoop() {
if(flags & Flag::Redraw) {
flags &= ~Flag::Redraw;
drawEvent();
} else Corrade::Utility::sleep(5);
} else SDL_WaitEvent(nullptr);
}
void Sdl2Application::setMouseLocked(bool enabled) {

Loading…
Cancel
Save