mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-01 09:46:22 +00:00
Screenshot tool and a build flag for conditional screenshot functionality:
- Adds the possibility to capture the device screen and save it as a PNG image - Wrap the code behind ENABLE_SCREENSHOT build flag, as per instructions in README
This commit is contained in:
@@ -58,4 +58,9 @@ public:
|
||||
void translateUTF8ToBlocks(char* dest, const char* src, size_t dest_size) override;
|
||||
void setBrightness(uint8_t level) override;
|
||||
void endFrame() override;
|
||||
|
||||
#ifdef ENABLE_SCREENSHOT
|
||||
// Screenshot support
|
||||
uint8_t* getBuffer() { return display.getBuffer(); }
|
||||
#endif
|
||||
};
|
||||
|
||||
@@ -45,4 +45,9 @@ public:
|
||||
void drawXbm(int x, int y, const uint8_t* bits, int w, int h) override;
|
||||
uint16_t getTextWidth(const char* str) override;
|
||||
void endFrame() override;
|
||||
|
||||
#ifdef ENABLE_SCREENSHOT
|
||||
// Screenshot support
|
||||
uint8_t* getBuffer() { return display.getBuffer(); }
|
||||
#endif
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user