diff --git a/src/application.cpp b/src/application.cpp index a6b3ae2..decaf78 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -14,6 +14,8 @@ #include "decoder.h" #include "pcm_audio.h" +#define MAX_REDRAW_PER_FRAME 4 + static KeySetting *keyMap[] = { &Settings::keySiri, &Settings::keyNightOn, @@ -200,6 +202,11 @@ bool Application::processSystemEvent(const SDL_Event &e) _debug = !_debug; return true; } + case SDLK_r: + { + _state.dirty = true; + _state.requestFrame = 1; + } } }