commit 83e4494
uint
·
2026-06-03 18:49:18 +0000 UTC
parent 6d88963
`Maus` use explicit types
1 files changed,
+5,
-4
+5,
-4
1@@ -1,6 +1,7 @@
2 #ifndef MAUSWIN_X11_H
3 #define MAUSWIN_X11_H
4
5+#include <stdbool.h>
6 #include <stdint.h>
7
8 #include <X11/Xlib.h>
9@@ -11,10 +12,10 @@ typedef struct {
10 Window win;
11
12 const char* title;
13- int width;
14- int height;
15- int x;
16- int y;
17+ uint32_t width;
18+ uint32_t height;
19+ int32_t x;
20+ int32_t y;
21
22 uint32_t* pixels;
23 } Maus;