M d2tk/frontend.h => d2tk/frontend.h +1 -1
@@ 53,7 53,7 @@ d2tk_frontend_get_clipboard(d2tk_frontend_t *dpugl, const char **type,
size_t *buf_len);
D2TK_API float
-d2tk_frontend_get_scale();
+d2tk_frontend_get_scale(void);
#ifdef __cplusplus
}
M example/d2tk_fbdev.c => example/d2tk_fbdev.c +1 -0
@@ 10,6 10,7 @@
#include <dirent.h>
#include <string.h>
#include <signal.h>
+#include <limits.h>
#include <d2tk/frontend_fbdev.h>
#include "example/example.h"
M example/example.h => example/example.h +1 -1
@@ 17,7 17,7 @@ D2TK_API int
d2tk_example_init(void);
D2TK_API void
-d2tk_example_deinit();
+d2tk_example_deinit(void);
D2TK_API void
d2tk_example_run(d2tk_frontend_t *frontend, d2tk_base_t *base,
M meson.build => meson.build +2 -1
@@ 259,7 259,8 @@ c_args = [
'-ffast-math',
'-Wno-gnu-zero-variadic-macro-arguments',
'-Wno-unknown-attributes',
- '-Wno-ignored-attributes'
+ '-Wno-ignored-attributes',
+ '-Wno-unknown-warning-option'
]
if host_machine.system() == 'windows'
M meson_options.txt => meson_options.txt +1 -1
@@ 55,4 55,4 @@ option('use-fontconfig',
value : 'disabled',
yield : true)
-option('version', type : 'string', value : '0.1.1331')
+option('version', type : 'string', value : '0.1.1335')
M src/frontend_fbdev.c => src/frontend_fbdev.c +1 -7
@@ 171,12 171,6 @@ handle_allocate_error:
}
static inline void
-_d2tk_frontend_close(d2tk_frontend_t *fbdev)
-{
- fbdev->done = true;
-}
-
-static inline void
_d2tk_frontend_expose(d2tk_frontend_t *fbdev)
{
d2tk_base_t *base = fbdev->base;
@@ 812,7 806,7 @@ d2tk_frontend_get_base(d2tk_frontend_t *fbdev)
}
D2TK_API float
-d2tk_frontend_get_scale()
+d2tk_frontend_get_scale(void)
{
return 1.f;
}
M src/frontend_glfw.c => src/frontend_glfw.c +1 -1
@@ 136,7 136,7 @@ d2tk_frontend_free(d2tk_frontend_t *dglfw)
}
D2TK_API float
-d2tk_frontend_get_scale()
+d2tk_frontend_get_scale(void)
{
#if 0
float xscale;
M src/frontend_pugl.c => src/frontend_pugl.c +1 -1
@@ 534,7 534,7 @@ d2tk_frontend_free(d2tk_frontend_t *dpugl)
}
D2TK_API float
-d2tk_frontend_get_scale()
+d2tk_frontend_get_scale(void)
{
const char *D2TK_SCALE = getenv("D2TK_SCALE");
const float scale = D2TK_SCALE ? atof(D2TK_SCALE) : 1.f;