mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[escher/run_loop] Move kandinksy include
To check whether an ExternalText could be written with Epsilon's fonts, UTF8Helper made a reference to Kandinsky, which is prohibited. This check is now done in Escher, before dispatching the event. Change-Id: I55e9db1ba43c3115775499db47b90a6bdd7cc7b3
This commit is contained in:
committed by
Émilie Feral
parent
d5e810f2b8
commit
0185e0562c
@@ -1,4 +1,5 @@
|
||||
#include <escher/run_loop.h>
|
||||
#include <kandinsky/font.h>
|
||||
#include <assert.h>
|
||||
|
||||
RunLoop::RunLoop() :
|
||||
@@ -64,6 +65,11 @@ bool RunLoop::step() {
|
||||
#endif
|
||||
|
||||
if (event != Ion::Events::None) {
|
||||
#if !PLATFORM_DEVICE
|
||||
if (event == Ion::Events::ExternalText && !KDFont::CanBeWrittenWithGlyphs(event.text())) {
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
dispatchEvent(event);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user