From 2d3845a642ec1ae4800a7c9171d438e9c87014d0 Mon Sep 17 00:00:00 2001 From: Niellune Date: Sat, 28 Mar 2026 01:14:33 +0200 Subject: [PATCH] Redraw --- src/application.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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; + } } }