From f68f2df575bca6e75cd8905e926ea823b1f379d5 Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 19 Jan 2025 22:31:04 +1100 Subject: Make the UI renderer more efficient --- ui.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui.hpp') diff --git a/ui.hpp b/ui.hpp index 37726cb..1ac3602 100644 --- a/ui.hpp +++ b/ui.hpp @@ -65,8 +65,8 @@ struct UI { void reset(const Rect& cl); void set_clip(const Rect& r); void clear(const Rect& r); - void flush(int x, int y); - void flush(); + void flush_cell(int x, int y); + bool flush(void* target); void resize(int w, int h); void init(Heap* heap, int w, int h); } ren; @@ -95,7 +95,7 @@ struct UI { void layout(int w, int h); void text_input(const char* buf); void update(Arena* s); - void render(Arena* s); + bool render(Arena* s, void* pixels); void draw_container(const Rect& r, Colour c); void draw_containeri(const Rect& r, Colour c); -- cgit v1.2.3-54-g00ecf