mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-08 00:27:39 +03:00
Compare commits
2 Commits
24d7ba8261
...
37e29dcf6f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
37e29dcf6f | ||
|
|
72e68e515c |
@ -333,7 +333,7 @@ void GfxRenderer::drawSideButtonHints(const int fontId, const char* topBtn, cons
|
|||||||
constexpr int buttonHeight = 80; // Height on screen (width when rotated)
|
constexpr int buttonHeight = 80; // Height on screen (width when rotated)
|
||||||
constexpr int buttonX = 5; // Distance from right edge
|
constexpr int buttonX = 5; // Distance from right edge
|
||||||
// Position for the button group - buttons share a border so they're adjacent
|
// Position for the button group - buttons share a border so they're adjacent
|
||||||
constexpr int topButtonY = 320; // Top button position
|
constexpr int topButtonY = 345; // Top button position
|
||||||
|
|
||||||
const char* labels[] = {topBtn, bottomBtn};
|
const char* labels[] = {topBtn, bottomBtn};
|
||||||
|
|
||||||
@ -342,8 +342,8 @@ void GfxRenderer::drawSideButtonHints(const int fontId, const char* topBtn, cons
|
|||||||
|
|
||||||
// Draw top button outline (3 sides, bottom open)
|
// Draw top button outline (3 sides, bottom open)
|
||||||
if (topBtn != nullptr && topBtn[0] != '\0') {
|
if (topBtn != nullptr && topBtn[0] != '\0') {
|
||||||
drawLine(x, topButtonY, x + buttonWidth - 1, topButtonY); // Top
|
drawLine(x, topButtonY, x + buttonWidth - 1, topButtonY); // Top
|
||||||
drawLine(x, topButtonY, x, topButtonY + buttonHeight - 1); // Left
|
drawLine(x, topButtonY, x, topButtonY + buttonHeight - 1); // Left
|
||||||
drawLine(x + buttonWidth - 1, topButtonY, x + buttonWidth - 1, topButtonY + buttonHeight - 1); // Right
|
drawLine(x + buttonWidth - 1, topButtonY, x + buttonWidth - 1, topButtonY + buttonHeight - 1); // Right
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -354,8 +354,9 @@ void GfxRenderer::drawSideButtonHints(const int fontId, const char* topBtn, cons
|
|||||||
|
|
||||||
// Draw bottom button outline (3 sides, top is shared)
|
// Draw bottom button outline (3 sides, top is shared)
|
||||||
if (bottomBtn != nullptr && bottomBtn[0] != '\0') {
|
if (bottomBtn != nullptr && bottomBtn[0] != '\0') {
|
||||||
drawLine(x, topButtonY + buttonHeight, x, topButtonY + 2 * buttonHeight - 1); // Left
|
drawLine(x, topButtonY + buttonHeight, x, topButtonY + 2 * buttonHeight - 1); // Left
|
||||||
drawLine(x + buttonWidth - 1, topButtonY + buttonHeight, x + buttonWidth - 1, topButtonY + 2 * buttonHeight - 1); // Right
|
drawLine(x + buttonWidth - 1, topButtonY + buttonHeight, x + buttonWidth - 1,
|
||||||
|
topButtonY + 2 * buttonHeight - 1); // Right
|
||||||
drawLine(x, topButtonY + 2 * buttonHeight - 1, x + buttonWidth - 1, topButtonY + 2 * buttonHeight - 1); // Bottom
|
drawLine(x, topButtonY + 2 * buttonHeight - 1, x + buttonWidth - 1, topButtonY + 2 * buttonHeight - 1); // Bottom
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -91,7 +91,6 @@ class GfxRenderer {
|
|||||||
int getTextHeight(int fontId) const;
|
int getTextHeight(int fontId) const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Grayscale functions
|
// Grayscale functions
|
||||||
void setRenderMode(const RenderMode mode) { this->renderMode = mode; }
|
void setRenderMode(const RenderMode mode) { this->renderMode = mode; }
|
||||||
void copyGrayscaleLsbBuffers() const;
|
void copyGrayscaleLsbBuffers() const;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user