mirror of
https://github.com/adafruit/Adafruit-GFX-Library.git
synced 2024-10-03 18:18:46 -04:00
clang-format
This commit is contained in:
parent
c9d659cc82
commit
4aa3ec7854
@ -1835,11 +1835,9 @@ void Adafruit_SPITFT::drawRGBBitmap(int16_t x, int16_t y, uint16_t *pcolors,
|
||||
int16_t src_y, int16_t src_w) {
|
||||
int16_t x2, y2; // Lower-right coord
|
||||
if ((x >= _width) || // Off-edge right
|
||||
(src_x >= src_w) ||
|
||||
(y >= _height) || // " bottom
|
||||
(src_x >= src_w) || (y >= _height) || // " bottom
|
||||
((x2 = (x + w - 1)) < 0) || // " left
|
||||
(src_x + src_w - 1 < 0) ||
|
||||
((y2 = (y + h - 1)) < 0)) // " top
|
||||
(src_x + src_w - 1 < 0) || ((y2 = (y + h - 1)) < 0)) // " top
|
||||
return; // " bottom
|
||||
|
||||
if (x < 0) { // Clip left
|
||||
|
Loading…
Reference in New Issue
Block a user