Skip to content

Commit

Permalink
fix(stdlib): make xod graphics bitmaps compile on non-avr boards (#2053)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabbapeople authored and evgenykochetkov committed Oct 28, 2020
1 parent 6c2dd13 commit 688064b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workspace/__ardulib__/Graphics/Bitmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ using xod::XColor;
* A structure to hold basic bitmap parameters.
*/
struct Bitmap {
Bitmap(uint8_t* newBuffer = nullptr, uint8_t newColorDepth = 0, uint16_t newWidth = 0, uint16_t newHeight = 0, uint16_t newKeyColor = 0x0000) {
Bitmap(const uint8_t* newBuffer, uint8_t newColorDepth = 0, uint16_t newWidth = 0, uint16_t newHeight = 0, uint16_t newKeyColor = 0x0000) {
buffer = newBuffer;
colorDepth = newColorDepth;
width = newWidth;
height = newHeight;
keyColor = newKeyColor;
}

uint8_t* buffer;
const uint8_t* buffer;
uint8_t colorDepth; // 0 = Black and white bitmap, 1 = Colored bitmap (565 format), 2 = Colored bitmap (565) with mask color;
uint16_t width;
uint16_t height;
Expand Down

0 comments on commit 688064b

Please sign in to comment.