Restore the V4 WiFi setup QR with a one-pixel border
This commit is contained in:
1 parent
626ead5433
commit
7ff11a2d64
6 files changed
+94
-17
No files matched your search
@@ -74,6 +74,10 @@ public:
|
||||
// fallback layout in place.
|
||||
#if defined(ESP32_PLATFORM) && defined(MESHCORE_HAS_REAL_DISPLAY)
|
||||
virtual bool drawQrCode(const char* text, int x, int y, int size);
|
||||
// Explicit pixel border for compact setup screens; -1 keeps the normal
|
||||
// four-module quiet zone. The matrix always uses whole pixels.
|
||||
virtual bool drawQrCodeWithBorder(const char* text, int x, int y, int size,
|
||||
int border_pixels);
|
||||
#else
|
||||
virtual bool drawQrCode(const char* text, int x, int y, int size) {
|
||||
(void)text;
|
||||
@@ -82,6 +86,15 @@ public:
|
||||
(void)size;
|
||||
return false;
|
||||
}
|
||||
virtual bool drawQrCodeWithBorder(const char* text, int x, int y, int size,
|
||||
int border_pixels) {
|
||||
(void)text;
|
||||
(void)x;
|
||||
(void)y;
|
||||
(void)size;
|
||||
(void)border_pixels;
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
virtual uint16_t getTextWidth(const char* str) = 0;
|
||||
virtual bool getTouch(int* x, int* y) {
|
||||
|
||||
Reference in new issue
Block a user