mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
T114 Landscape
This commit is contained in:
parent
67d709b3aa
commit
d3a88e9206
1 changed files with 2 additions and 3 deletions
|
|
@ -366,9 +366,8 @@ class ST7789Spi : public OLEDDisplay {
|
|||
private:
|
||||
|
||||
void setAddrWindow(uint16_t x, uint16_t y, uint16_t w, uint16_t h) {
|
||||
// For landscape orientation (240x135)
|
||||
x += (320-displayWidth)/2; // Center horizontally in 320 pixels
|
||||
y += (240-displayHeight)/2; // Center vertically in 240 pixels
|
||||
x += (320-displayWidth)/2;
|
||||
y += (240-displayHeight)/2;
|
||||
|
||||
uint32_t xa = ((uint32_t)x << 16) | (x + w - 1);
|
||||
uint32_t ya = ((uint32_t)y << 16) | (y + h - 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue