summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/InfiniPaint.cpp
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2021-09-02 18:35:56 (GMT)
committerGitea <gitea@fake.local>2021-09-02 18:35:56 (GMT)
commit6c3d6fb2575888e582e7ef3004a0bc3bf6c588b6 (patch)
treeac396c060b423dd98fd915e742c14fc457a6f6d9 /src/displayapp/screens/InfiniPaint.cpp
parentdb6a701644116932f11c54ee0f619464de9faeb7 (diff)
parent6f9f0e8b0e42a5526d47ca664534fb6b0ccb6ace (diff)
Merge branch 'develop' of JF/PineTime into master
Diffstat (limited to 'src/displayapp/screens/InfiniPaint.cpp')
-rw-r--r--src/displayapp/screens/InfiniPaint.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/displayapp/screens/InfiniPaint.cpp b/src/displayapp/screens/InfiniPaint.cpp
index 3224008..85a5e82 100644
--- a/src/displayapp/screens/InfiniPaint.cpp
+++ b/src/displayapp/screens/InfiniPaint.cpp
@@ -5,20 +5,13 @@
using namespace Pinetime::Applications::Screens;
InfiniPaint::InfiniPaint(Pinetime::Applications::DisplayApp* app, Pinetime::Components::LittleVgl& lvgl) : Screen(app), lvgl {lvgl} {
- app->SetTouchMode(DisplayApp::TouchModes::Polling);
std::fill(b, b + bufferSize, selectColor);
}
InfiniPaint::~InfiniPaint() {
- // Reset the touchmode
- app->SetTouchMode(DisplayApp::TouchModes::Gestures);
lv_obj_clean(lv_scr_act());
}
-bool InfiniPaint::Refresh() {
- return running;
-}
-
bool InfiniPaint::OnTouchEvent(Pinetime::Applications::TouchEvents event) {
switch (event) {
case Pinetime::Applications::TouchEvents::LongTap: