mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2025-12-19 07:37:41 +03:00
clang-format-fix
This commit is contained in:
parent
a29ff93f9c
commit
2614d1da28
@ -321,8 +321,7 @@ void EpubReaderActivity::renderScreen() {
|
|||||||
return renderScreen();
|
return renderScreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
Serial.printf("[%lu] [ERS] Page loaded: %d elements, %d footnotes\n",
|
Serial.printf("[%lu] [ERS] Page loaded: %d elements, %d footnotes\n", millis(), p->elementCount, p->footnoteCount);
|
||||||
millis(), p->elementCount, p->footnoteCount);
|
|
||||||
|
|
||||||
// Copy footnotes from page to currentPageFootnotes
|
// Copy footnotes from page to currentPageFootnotes
|
||||||
currentPageFootnotes.clear();
|
currentPageFootnotes.clear();
|
||||||
|
|||||||
@ -7,11 +7,11 @@
|
|||||||
#include "../Activity.h"
|
#include "../Activity.h"
|
||||||
|
|
||||||
class FootnotesData {
|
class FootnotesData {
|
||||||
private:
|
private:
|
||||||
FootnoteEntry entries[16];
|
FootnoteEntry entries[16];
|
||||||
int count;
|
int count;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FootnotesData() : count(0) {
|
FootnotesData() : count(0) {
|
||||||
for (int i = 0; i < 16; i++) {
|
for (int i = 0; i < 16; i++) {
|
||||||
entries[i].number[0] = '\0';
|
entries[i].number[0] = '\0';
|
||||||
@ -53,7 +53,7 @@ class EpubReaderFootnotesActivity final : public Activity {
|
|||||||
const std::function<void(const char*)> onSelectFootnote;
|
const std::function<void(const char*)> onSelectFootnote;
|
||||||
int selectedIndex;
|
int selectedIndex;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
EpubReaderFootnotesActivity(GfxRenderer& renderer, InputManager& inputManager, const FootnotesData& footnotes,
|
EpubReaderFootnotesActivity(GfxRenderer& renderer, InputManager& inputManager, const FootnotesData& footnotes,
|
||||||
const std::function<void()>& onGoBack,
|
const std::function<void()>& onGoBack,
|
||||||
const std::function<void(const char*)>& onSelectFootnote)
|
const std::function<void(const char*)>& onSelectFootnote)
|
||||||
@ -67,6 +67,6 @@ public:
|
|||||||
void onExit() override;
|
void onExit() override;
|
||||||
void loop() override;
|
void loop() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void render();
|
void render();
|
||||||
};
|
};
|
||||||
Loading…
Reference in New Issue
Block a user