Fixed portrait mode bug.

This commit is contained in:
nitko12 2020-09-26 12:39:31 +02:00
parent 3c9398ca33
commit b6781dd127
1 changed files with 1 additions and 1 deletions

View File

@ -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;