mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-08-03 04:34:43 +02:00
@@ -587,6 +587,7 @@ void TFT_eSprite::pushImage(int32_t x, int32_t y, uint32_t w, uint32_t h, uint1
|
|||||||
uint16_t color = data[xp + yp * w];
|
uint16_t color = data[xp + yp * w];
|
||||||
if(_iswapBytes) color = color<<8 | color>>8;
|
if(_iswapBytes) color = color<<8 | color>>8;
|
||||||
_img8[x + ys * _iwidth] = (uint8_t)((color & 0xE000)>>8 | (color & 0x0700)>>6 | (color & 0x0018)>>3);
|
_img8[x + ys * _iwidth] = (uint8_t)((color & 0xE000)>>8 | (color & 0x0700)>>6 | (color & 0x0018)>>3);
|
||||||
|
x++;
|
||||||
}
|
}
|
||||||
ys++;
|
ys++;
|
||||||
}
|
}
|
||||||
@@ -679,6 +680,7 @@ void TFT_eSprite::pushImage(int32_t x, int32_t y, uint32_t w, uint32_t h, const
|
|||||||
uint16_t color = pgm_read_word(data + xp + yp * w);
|
uint16_t color = pgm_read_word(data + xp + yp * w);
|
||||||
if(_iswapBytes) color = color<<8 | color>>8;
|
if(_iswapBytes) color = color<<8 | color>>8;
|
||||||
_img8[x + ys * _iwidth] = (uint8_t)((color & 0xE000)>>8 | (color & 0x0700)>>6 | (color & 0x0018)>>3);
|
_img8[x + ys * _iwidth] = (uint8_t)((color & 0xE000)>>8 | (color & 0x0700)>>6 | (color & 0x0018)>>3);
|
||||||
|
x++;
|
||||||
}
|
}
|
||||||
ys++;
|
ys++;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user