From 7c21d4ff56d315fe259cf9d3ab7a973a535f0883 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Fri, 30 Jun 2023 14:13:23 +0100 Subject: [PATCH] Update TFT_eSPI.h --- TFT_eSPI.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TFT_eSPI.h b/TFT_eSPI.h index a12c8e4..4757a71 100644 --- a/TFT_eSPI.h +++ b/TFT_eSPI.h @@ -731,7 +731,12 @@ class TFT_eSPI : public Print { friend class TFT_eSprite; // Sprite class has ac // Alpha blend 2 colours, see generic "alphaBlend_Test" example // alpha = 0 = 100% background colour // alpha = 255 = 100% foreground colour +#ifdef STM32 uint16_t alphaBlend(uint8_t alpha, uint16_t fgc, uint16_t bgc); +#else + inline + uint16_t alphaBlend(uint8_t alpha, uint16_t fgc, uint16_t bgc); +#endif // 16 bit colour alphaBlend with alpha dither (dither reduces colour banding) uint16_t alphaBlend(uint8_t alpha, uint16_t fgc, uint16_t bgc, uint8_t dither); // 24 bit colour alphaBlend with optional alpha dither