mirror of
https://github.com/niellun/FastCarPlay.git
synced 2026-07-29 09:28:49 +02:00
Redraw
This commit is contained in:
@@ -14,6 +14,8 @@
|
|||||||
#include "decoder.h"
|
#include "decoder.h"
|
||||||
#include "pcm_audio.h"
|
#include "pcm_audio.h"
|
||||||
|
|
||||||
|
#define MAX_REDRAW_PER_FRAME 4
|
||||||
|
|
||||||
static KeySetting<int> *keyMap[] = {
|
static KeySetting<int> *keyMap[] = {
|
||||||
&Settings::keySiri,
|
&Settings::keySiri,
|
||||||
&Settings::keyNightOn,
|
&Settings::keyNightOn,
|
||||||
@@ -200,6 +202,11 @@ bool Application::processSystemEvent(const SDL_Event &e)
|
|||||||
_debug = !_debug;
|
_debug = !_debug;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
case SDLK_r:
|
||||||
|
{
|
||||||
|
_state.dirty = true;
|
||||||
|
_state.requestFrame = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user