diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-04-15 01:54:42 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-04-15 01:54:42 -0400 |
commit | d56d96031c42a68fa38e7b12bf028ee6d2eb3ef3 (patch) | |
tree | 37e96ce3906f120f6509407b178972f680db57b3 /firmware/export | |
parent | b9c3ab2e049124894716305c9aa8a1d7a610d134 (diff) | |
download | rockbox-d56d96031c42a68fa38e7b12bf028ee6d2eb3ef3.tar.gz rockbox-d56d96031c42a68fa38e7b12bf028ee6d2eb3ef3.zip |
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
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/lcd.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 { | |||
178 | 178 | ||
179 | #define VP_IS_RTL(vp) (((vp)->flags & VP_FLAG_ALIGNMENT_MASK) == VP_FLAG_ALIGN_RIGHT) | 179 | #define VP_IS_RTL(vp) (((vp)->flags & VP_FLAG_ALIGNMENT_MASK) == VP_FLAG_ALIGN_RIGHT) |
180 | 180 | ||
181 | #define VP_FLAG_VP_DIRTY 0x4000 | 181 | #define VP_FLAG_OWNER_UPDATE 0x2000 /* block update_vp functions */ |
182 | #define VP_FLAG_CLEAR_FLAG 0x8000 | 182 | #define VP_FLAG_VP_DIRTY 0x4000 |
183 | #define VP_FLAG_CLEAR_FLAG 0x8000 | ||
183 | #define VP_FLAG_VP_SET_CLEAN (VP_FLAG_CLEAR_FLAG | VP_FLAG_VP_DIRTY) | 184 | #define VP_FLAG_VP_SET_CLEAN (VP_FLAG_CLEAR_FLAG | VP_FLAG_VP_DIRTY) |
184 | 185 | ||
185 | struct viewport { | 186 | struct viewport { |