mirror of
https://github.com/opentx/opentx.git
synced 2025-07-20 14:55:13 +03:00
Dual-buffer for LCD
This commit is contained in:
parent
e32da2ba4a
commit
0d1362e476
4 changed files with 27 additions and 7 deletions
|
@ -36,11 +36,20 @@
|
|||
|
||||
#include "opentx.h"
|
||||
|
||||
|
||||
#if defined(LCD_DUAL_BUFFER)
|
||||
display_t displayBuf1[DISPLAY_BUF_SIZE];
|
||||
display_t displayBuf2[DISPLAY_BUF_SIZE];
|
||||
display_t * displayBuf = displayBuf1;
|
||||
#define DISPLAY_BUFER_SIZE sizeof(displayBuf1)
|
||||
#else
|
||||
display_t displayBuf[DISPLAY_BUF_SIZE];
|
||||
#define DISPLAY_BUFER_SIZE sizeof(displayBuf)
|
||||
#endif
|
||||
|
||||
void lcd_clear()
|
||||
{
|
||||
memset(displayBuf, 0, sizeof(displayBuf));
|
||||
memset(displayBuf, 0, DISPLAY_BUFER_SIZE);
|
||||
}
|
||||
|
||||
coord_t lcdLastPos;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue