From d56d96031c42a68fa38e7b12bf028ee6d2eb3ef3 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Fri, 15 Apr 2022 01:54:42 -0400 Subject: viewports add flag to disable updates when drwing multiple areas of the screen with other gui elements you might want to combine updates into a single screen redraw Change-Id: Ie4130366fa13e25d3d14e937257d11547dd61134 --- firmware/export/lcd.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'firmware/export/lcd.h') diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index 13165129b1..2f8fd3e751 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h @@ -178,8 +178,9 @@ struct frame_buffer_t { #define VP_IS_RTL(vp) (((vp)->flags & VP_FLAG_ALIGNMENT_MASK) == VP_FLAG_ALIGN_RIGHT) -#define VP_FLAG_VP_DIRTY 0x4000 -#define VP_FLAG_CLEAR_FLAG 0x8000 +#define VP_FLAG_OWNER_UPDATE 0x2000 /* block update_vp functions */ +#define VP_FLAG_VP_DIRTY 0x4000 +#define VP_FLAG_CLEAR_FLAG 0x8000 #define VP_FLAG_VP_SET_CLEAN (VP_FLAG_CLEAR_FLAG | VP_FLAG_VP_DIRTY) struct viewport { -- cgit v1.2.3