Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invisiblecolor not working #5

Merged
merged 1 commit into from Nov 30, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 4 additions & 3 deletions Pokitto/POKITTO_CORE/PokittoDisplay.cpp
Expand Up @@ -209,6 +209,7 @@ void Display::fillLCD(uint16_t c) {
}

void Display::directPixel(int16_t x, int16_t y, uint16_t color) {
if ((invisiblecolor < PALETTE_SIZE) && (invisiblecolor < 16) && (color == palette[invisiblecolor])) return;
lcdPixel(x,y,color);
}

Expand Down Expand Up @@ -1679,15 +1680,15 @@ void Display::drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap, uint8_t ro
k = i;
l = j;
break;
case ROTCCW: //90 counter-clockwise
case ROTCCW: //90° counter-clockwise
k = j;
l = w - i - 1;
break;
case ROT180: //180
case ROT180: //180°
k = w - i - 1;
l = h - j - 1;
break;
case ROTCW: //90 clockwise
case ROTCW: //90° clockwise
k = h - j - 1;
l = i;
break;
Expand Down