Skip to content

Commit

Permalink
fix(stdlib): make xod graphics bitmaps compile on non-avr boards
Browse files Browse the repository at this point in the history
  • Loading branch information
gabbapeople committed Oct 5, 2020
1 parent faf25a8 commit 7463fb7
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,8 +8,8 @@ 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) {
buffer = newBuffer;
Bitmap(const uint8_t* newBuffer, uint8_t newColorDepth = 0, uint16_t newWidth = 0, uint16_t newHeight = 0, uint16_t newKeyColor = 0x0000) {
buffer = const_cast<uint8_t*>(newBuffer);
colorDepth = newColorDepth;
width = newWidth;
height = newHeight;
Expand Down

0 comments on commit 7463fb7

Please sign in to comment.