From 23d946572b6aacb9bab9f90e04545dadc0cf5904 Mon Sep 17 00:00:00 2001
From: Leonard Gies <l.gies@fasttube.de>
Date: Wed, 2 Apr 2025 01:42:49 +0200
Subject: [PATCH] fix definition of invalidateTextureCache after TouchGFX
 update

---
 .../framework/source/touchgfx/PaintImpl.cpp   | 19 +++++++++++++++++++
 STM32-for-VSCode.config.yaml                  |  1 +
 2 files changed, 20 insertions(+)
 create mode 100644 Middlewares/ST/touchgfx/framework/source/touchgfx/PaintImpl.cpp

diff --git a/Middlewares/ST/touchgfx/framework/source/touchgfx/PaintImpl.cpp b/Middlewares/ST/touchgfx/framework/source/touchgfx/PaintImpl.cpp
new file mode 100644
index 0000000..2328a6b
--- /dev/null
+++ b/Middlewares/ST/touchgfx/framework/source/touchgfx/PaintImpl.cpp
@@ -0,0 +1,19 @@
+/**
+ * @file PaintImpl.cpp
+ *
+ * fixes definition of invalidateTextureCache
+ */
+#ifndef TOUCHGFX_PAINTIMPL_HPP
+#define TOUCHGFX_PAINTIMPL_HPP
+
+#include <touchgfx/hal/Paint.hpp>
+
+namespace touchgfx {
+namespace paint {
+
+void invalidateTextureCache() {}
+
+} // namespace paint
+} // namespace touchgfx
+
+#endif // TOUCHGFX_PAINTIMPL_HPP
diff --git a/STM32-for-VSCode.config.yaml b/STM32-for-VSCode.config.yaml
index 487831c..9351c37 100644
--- a/STM32-for-VSCode.config.yaml
+++ b/STM32-for-VSCode.config.yaml
@@ -149,6 +149,7 @@ sourceFiles:
   - Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c
   - Core/Src/system_stm32h7xx.c
   - Utilities/JPEG/jpeg_utils.c
+  - Middlewares/ST/touchgfx/framework/source/touchgfx/PaintImpl.cpp
   - Src/**
   - Core/Src/**
   - Core/Lib/**