diff options
author | quou <quou@disroot.org> | 2025-01-19 22:31:04 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2025-01-19 22:31:04 +1100 |
commit | f68f2df575bca6e75cd8905e926ea823b1f379d5 (patch) | |
tree | 5fa40674882eb3a04562f5f0e70b0db20d0cb285 /ui.hpp | |
parent | 74e8d3f0278a65fdf86a1185fec8a6016e628e88 (diff) |
Make the UI renderer more efficient
Diffstat (limited to 'ui.hpp')
-rw-r--r-- | ui.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |