Skip to content

Commit 059d3bb

Browse files
committed
Fixed color rotation
1 parent 7e687bb commit 059d3bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/boards/InkplateColor.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,17 +169,17 @@ void Graphics::writePixel(int16_t x0, int16_t y0, uint16_t _color)
169169
if (_color > 6)
170170
return;
171171

172-
switch (rotation)
172+
switch (rotation) // FIXED
173173
{
174-
case 1:
174+
case 3:
175175
_swap_int16_t(x0, y0);
176176
x0 = height() - x0 - 1;
177177
break;
178-
case 2:
178+
case 0:
179179
x0 = width() - x0 - 1;
180180
y0 = height() - y0 - 1;
181181
break;
182-
case 3:
182+
case 1:
183183
_swap_int16_t(x0, y0);
184184
y0 = width() - y0 - 1;
185185
break;

0 commit comments

Comments
 (0)