mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
stm32: Fix compilation with newer STM BSPs
Neither the BSP_LCD_Relaod typo nor the legacy #define is present in newer BSPs anymore.
This commit is contained in:
parent
5b241e493a
commit
af2f8a5ab8
1 changed files with 8 additions and 0 deletions
|
@ -162,10 +162,18 @@ struct StmSlintPlatform : public slint::platform::Platform
|
|||
|
||||
SCB_CleanDCache_by_Addr((uint32_t *)buffer1.data(), buffer1.size());
|
||||
|
||||
#if defined(BSP_LCD_Relaod)
|
||||
BSP_LCD_Relaod(0, BSP_LCD_RELOAD_NONE);
|
||||
#else
|
||||
BSP_LCD_Reload(0, BSP_LCD_RELOAD_NONE);
|
||||
#endif
|
||||
BSP_LCD_SetLayerAddress(0, 0, uintptr_t(buffer1.data()));
|
||||
screen_ready = false;
|
||||
#if defined(BSP_LCD_Relaod)
|
||||
BSP_LCD_Relaod(0, BSP_LCD_RELOAD_VERTICAL_BLANKING);
|
||||
#else
|
||||
BSP_LCD_Reload(0, BSP_LCD_RELOAD_VERTICAL_BLANKING);
|
||||
#endif
|
||||
|
||||
std::swap(buffer1, buffer2);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue