summaryrefslogtreecommitdiff
path: root/src/components/gfx/Gfx.h
diff options
context:
space:
mode:
authorFinlay Davidson <finlay.davidson@coderclass.nl>2023-01-07 21:23:15 +0100
committerJF <JF002@users.noreply.github.com>2023-01-09 21:41:21 +0100
commit96165a8541b33baace920e26f062b2e282d644c6 (patch)
tree41a5c6ec1f9a9981fcf970b7b48095b54c142d64 /src/components/gfx/Gfx.h
parent09db67e003ab593956b4d4474fd08e7548985030 (diff)
Format header files
In my PR updating clang-format, I forgot to also format the headers.
Diffstat (limited to 'src/components/gfx/Gfx.h')
-rw-r--r--src/components/gfx/Gfx.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/gfx/Gfx.h b/src/components/gfx/Gfx.h
index 54c4a8b7..17c248f7 100644
--- a/src/components/gfx/Gfx.h
+++ b/src/components/gfx/Gfx.h
@@ -10,6 +10,7 @@ namespace Pinetime {
namespace Drivers {
class St7789;
}
+
namespace Components {
class Gfx : public Pinetime::Drivers::BufferProvider {
public:
@@ -33,9 +34,11 @@ namespace Pinetime {
static constexpr uint8_t height = 240;
enum class Action { None, FillRectangle, DrawChar };
+
struct State {
State() : busy {false}, action {Action::None}, remainingIterations {0}, currentIteration {0} {
}
+
volatile bool busy;
volatile Action action;
volatile uint16_t remainingIterations;