Skip to content

Commit

Permalink
Format with clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
dyamon committed Sep 23, 2021
1 parent 5e25c33 commit b8595c4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/displayapp/screens/WatchFaceFuzzy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void WatchFaceFuzzy::Refresh() {
uint8_t hours, minutes;
std::string hoursStr, timeStr;

hours = dateTimeController.Hours() % 12; // TODO: maybe that's not needed?
hours = dateTimeController.Hours() % 12; // TODO: maybe that's not needed?
minutes = dateTimeController.Minutes();
auto sector = (minutes / 5 + (minutes % 5 > 2)) % 12;

Expand Down
33 changes: 16 additions & 17 deletions src/displayapp/screens/WatchFaceFuzzy.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,22 @@
#include "components/datetime/DateTimeController.h"

namespace Pinetime {
namespace Applications {
namespace Screens {
class WatchFaceFuzzy : public Screen {
public:
WatchFaceFuzzy(DisplayApp* app, Controllers::DateTime& dateTimeController);
~WatchFaceFuzzy() override;
void Refresh() override;
namespace Applications {
namespace Screens {
class WatchFaceFuzzy : public Screen {
public:
WatchFaceFuzzy(DisplayApp* app, Controllers::DateTime& dateTimeController);
~WatchFaceFuzzy() override;
void Refresh() override;

private:
Controllers::DateTime& dateTimeController;
lv_task_t* taskRefresh;
lv_obj_t* label_time;
const char* timeAccent = "ffffff";
static const char* timeSectors[12];
static const char* hourNames[12];
};
}
private:
Controllers::DateTime& dateTimeController;
lv_task_t* taskRefresh;
lv_obj_t* label_time;
const char* timeAccent = "ffffff";
static const char* timeSectors[12];
static const char* hourNames[12];
};
}
}
}

0 comments on commit b8595c4

Please sign in to comment.