From 4aa3ec78549a1fe4fa50591fe7c0e029fbb9ade8 Mon Sep 17 00:00:00 2001 From: "Ryan M. Lederman" Date: Fri, 22 Dec 2023 11:41:13 -0700 Subject: [PATCH] clang-format --- Adafruit_SPITFT.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Adafruit_SPITFT.cpp b/Adafruit_SPITFT.cpp index 4562036b..fcbb5677 100644 --- a/Adafruit_SPITFT.cpp +++ b/Adafruit_SPITFT.cpp @@ -1833,14 +1833,12 @@ void Adafruit_SPITFT::pushColor(uint16_t color) { void Adafruit_SPITFT::drawRGBBitmap(int16_t x, int16_t y, uint16_t *pcolors, int16_t w, int16_t h, int16_t src_x, 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 - ((x2 = (x + w - 1)) < 0) || // " left - (src_x + src_w - 1 < 0) || - ((y2 = (y + h - 1)) < 0)) // " top - return; // " bottom + int16_t x2, y2; // Lower-right coord + if ((x >= _width) || // Off-edge right + (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 + return; // " bottom if (x < 0) { // Clip left w += x;