1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
William Wilgus 2022-04-15 01:54:42 -04:00
parent b9c3ab2e04
commit d56d96031c
2 changed files with 14 additions and 3 deletions

View file

@ -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 {