commit 0ec0c9a

uint  ·  2026-06-02 16:06:02 +0000 UTC
parent 05a293a
Add doc, (x, y) for windows
2 files changed,  +6, -4
+0, -3
 1@@ -14,8 +14,6 @@ static void vlog(FILE* fd, const char* fmt, va_list ap)
 2 	fflush(fd);
 3 }
 4 
 5-/* log message to output `fd` and die
 6-   on finish */
 7 void maus_die(const char* fmt, ...)
 8 {
 9 	va_list ap;
10@@ -26,7 +24,6 @@ void maus_die(const char* fmt, ...)
11 	exit(EXIT_FAILURE);
12 }
13 
14-/* log message to output `fd` */
15 void maus_log(FILE* fd, const char* fmt, ...)
16 {
17 	va_list ap;
+6, -1
 1@@ -35,8 +35,13 @@
 2 
 3 #endif
 4 
 5+/* log message to output `fd` and die */
 6 void maus_die(const char* fmt, ...);
 7-MausWindow* maus_init(const char* title, int width, int height);
 8+
 9+/* initialise and create the window */
10+MausWindow* maus_init(const char* title, int x, int y, int width, int height);
11+
12+/* log message to output `fd` */
13 void maus_log(FILE* fd, const char* fmt, ...);
14 
15 #endif /* MAUSWIN_H */