summaryrefslogtreecommitdiff
path: root/ui.hpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-01-19 22:31:04 +1100
committerquou <quou@disroot.org>2025-01-19 22:31:04 +1100
commitf68f2df575bca6e75cd8905e926ea823b1f379d5 (patch)
tree5fa40674882eb3a04562f5f0e70b0db20d0cb285 /ui.hpp
parent74e8d3f0278a65fdf86a1185fec8a6016e628e88 (diff)
Make the UI renderer more efficient
Diffstat (limited to 'ui.hpp')
-rw-r--r--ui.hpp6
1 files changed, 3 insertions, 3 deletions
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);