commit b40fa8f
uint
·
2026-08-03 18:29:38 +0000 UTC
parent e33c1df
Wayland: implement maus_clear, update TODO
2 files changed,
+8,
-0
M
TODO
+2,
-0
1@@ -1,5 +1,7 @@
2 Maus:
3 [ ] Rename mw->ctx internally
4+[ ] Move framebuffer creation out
5+ of maus_init on platforms
6 [?] Cursor warping
7 [?] Custom cursor
8
+6,
-0
1@@ -131,7 +131,13 @@ static int8_t fb_create_shm(size_t size)
2
3 void maus_clear(Maus* mw, MausColor col)
4 {
5+ uint32_t up = MAUS_UNPACK_COL(col);
6+ uint32_t pxs = mw->height * mw->width;
7
8+ uint32_t i;
9+
10+ for (i = 0; i < pxs; i++)
11+ mw->bfb[i] = up;
12 }
13
14 void maus_clipboard_set_text(Maus* mw, const char* text)