15 #include "ui_display_brs.h"
16 #if defined UI_FEATURE_BRS && UI_FEATURE_BRS == UI_FEATURE_BRS_LEGACY
22 static ui_rect_t flush_bounds = {
34 DRAWING_Status LLUI_DISPLAY_IMPL_newDrawingRegion(MICROUI_GraphicsContext *gc, ui_rect_t *region,
bool drawing_now) {
37 flush_bounds.x1 = MIN(flush_bounds.x1, region->x1);
38 flush_bounds.y1 = MIN(flush_bounds.y1, region->y1);
39 flush_bounds.x2 = MAX(flush_bounds.x2, region->x2);
40 flush_bounds.y2 = MAX(flush_bounds.y2, region->y2);
44 DRAWING_Status LLUI_DISPLAY_IMPL_refresh(MICROUI_GraphicsContext *gc, uint8_t flushIdentifier) {
45 LLTRACE_record_event_u32x6(LLUI_EVENT_group, LLUI_EVENT_offset + UI_LOG_BRS_FlushSingle, flushIdentifier,
46 (uint32_t)LLUI_DISPLAY_getBufferAddress(&gc->image), flush_bounds.x1, flush_bounds.y1,
47 flush_bounds.x2, flush_bounds.y2);
49 LLUI_DISPLAY_IMPL_flush(gc, flushIdentifier, &flush_bounds, 1);
52 flush_bounds.x1 = INT16_MAX;
53 flush_bounds.y1 = INT16_MAX;