From 1a9db910ce649a69c798d0dfc7be070c3dc04f43 Mon Sep 17 00:00:00 2001 From: igors48 Date: Sun, 26 Jun 2022 12:41:44 +0300 Subject: [PATCH] #100 custom fonts doxygen --- src/core/component/textComponent.cpp | 2 +- src/core/watch/tft.cpp | 10 ++++++---- src/core/watch/tft.hpp | 6 ++++++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/core/component/textComponent.cpp b/src/core/component/textComponent.cpp index cc6a3e1..8df0da3 100644 --- a/src/core/component/textComponent.cpp +++ b/src/core/component/textComponent.cpp @@ -16,7 +16,7 @@ bool textComponentIsStateModified(Component *component) TextState *state = (TextState *)component->state; (state->provide)(state); return (strcmp(state->content, state->_content) != 0) || - (state->size != state->_size) || // todo is these checks (size and font) needed + (state->size != state->_size) || // todo is these checks (size and font) needed #108 (state->fontColor != state->_fontColor) || (state->backColor != state->_backColor) || (state->font != state->_font); diff --git a/src/core/watch/tft.cpp b/src/core/watch/tft.cpp index fcdb612..8a2fc07 100644 --- a/src/core/watch/tft.cpp +++ b/src/core/watch/tft.cpp @@ -3,10 +3,12 @@ * @author Igor Usenko (github: igors48) * @brief TFT API implementation based on sprite * - * Holds in memory full-screen sprite - * All drawings are performed on that sprite - * When all is drawn - sprite is pushed to video memory - * Also maintains the dirty flag to prevent not needed pushes + * Holds in memory full-screen sprite. + *
+ * All drawings are performed on that sprite. + * When all is drawn - sprite is pushed to video memory. + *
+ * Also maintains the dirty flag to prevent not needed pushes. */ #include "tft.hpp" #include "ttgo.hpp" diff --git a/src/core/watch/tft.hpp b/src/core/watch/tft.hpp index f3bb3ad..d3f4999 100644 --- a/src/core/watch/tft.hpp +++ b/src/core/watch/tft.hpp @@ -7,7 +7,13 @@ */ #pragma once +/** + * @brief Code of small size custom font + */ const unsigned char SMALL_FONT = 128; +/** + * @brief Code of medium size custom font + */ const unsigned char MEDIUM_FONT = 129; typedef struct