From b6781dd127b8119413297fecd2905f67881683c7 Mon Sep 17 00:00:00 2001 From: nitko12 Date: Sat, 26 Sep 2020 12:39:31 +0200 Subject: [PATCH] Fixed portrait mode bug. --- src/include/Graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/Graphics.cpp b/src/include/Graphics.cpp index 3d62d1b..115042d 100644 --- a/src/include/Graphics.cpp +++ b/src/include/Graphics.cpp @@ -70,7 +70,7 @@ void Graphics::writePixel(int16_t x0, int16_t y0, uint16_t color) { case 1: _swap_int16_t(x0, y0); - x0 = width() - x0 - 1; + x0 = height() - x0 - 1; break; case 2: x0 = width() - x0 - 1;