commit 0c50d4e
uint
·
2026-06-06 17:17:48 +0000 UTC
parent 5872872
MAUSE_PIXEL_AT(x, y) Easy framebuffer access at pixel (x, y)
1 files changed,
+1,
-0
M
maus.h
M
maus.h
+1,
-0
1@@ -44,6 +44,7 @@
2 ((uint32_t)(c).g << 8) | \
3 ((uint32_t)(c).b))
4 /* ... */
5+#define MAUS_PIXEL_AT(mw, x, y) ((mw)->fb[(y) * (mw)->stride + (x)])
6
7 typedef enum {
8 MAUS_EV_NONE,